mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 11:27:09 +00:00
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<v-card style="min-height:400px;">
|
||||
<v-card style="min-height:400px;" outlined>
|
||||
<v-card-title class="headline">
|
||||
Gun pressures
|
||||
<v-spacer></v-spacer>
|
||||
@@ -98,6 +98,10 @@ export default {
|
||||
this.plotViolin();
|
||||
}
|
||||
this.$emit("update:settings", {[`${this.$options.name}.violinplot`]: this.violinplot});
|
||||
},
|
||||
|
||||
"$vuetify.theme.isDark" () {
|
||||
this.plot();
|
||||
}
|
||||
|
||||
},
|
||||
@@ -123,7 +127,7 @@ export default {
|
||||
const gunPressuresSorted = gunPressures.map(s => d3a.sort(s));
|
||||
const gunVolumes = guns.map(s => s.map(g => g[12]));
|
||||
const gunPressureWeights = gunVolumes.map( (s, sidx) => s.map( v => v/meta[sidx].volume ));
|
||||
const gunsWeightedAvgPressure = gunPressures.map( (s, sidx) =>
|
||||
const gunsWeightedAvgPressure = gunPressures.map( (s, sidx) =>
|
||||
d3a.sum(s.map( (pressure, gidx) => pressure * gunPressureWeights[sidx][gidx] )) / d3a.sum(gunPressureWeights[sidx])
|
||||
);
|
||||
|
||||
@@ -210,6 +214,11 @@ export default {
|
||||
title: "Shotpoint",
|
||||
showspikes: true
|
||||
},
|
||||
font: {
|
||||
color: this.$vuetify.theme.isDark ? "#fff" : undefined
|
||||
},
|
||||
plot_bgcolor:"rgba(0,0,0,0)",
|
||||
paper_bgcolor:"rgba(0,0,0,0)",
|
||||
meta: this.data.meta
|
||||
};
|
||||
|
||||
@@ -249,6 +258,11 @@ export default {
|
||||
title: "Gun number",
|
||||
type: 'category'
|
||||
},
|
||||
font: {
|
||||
color: this.$vuetify.theme.isDark ? "#fff" : undefined
|
||||
},
|
||||
plot_bgcolor:"rgba(0,0,0,0)",
|
||||
paper_bgcolor:"rgba(0,0,0,0)",
|
||||
meta: {
|
||||
point
|
||||
}
|
||||
@@ -322,6 +336,11 @@ export default {
|
||||
xaxis: {
|
||||
title: "Gun number"
|
||||
},
|
||||
font: {
|
||||
color: this.$vuetify.theme.isDark ? "#fff" : undefined
|
||||
},
|
||||
plot_bgcolor:"rgba(0,0,0,0)",
|
||||
paper_bgcolor:"rgba(0,0,0,0)",
|
||||
meta: this.data.meta
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user