[GUI] Changed plot colors to use the matplotlib default color sequence

This commit is contained in:
PAJohnson
2020-12-16 00:34:37 -05:00
parent e344118835
commit 918240fe33
3 changed files with 20 additions and 15 deletions
+4 -4
View File
@@ -102,11 +102,11 @@
"vars": [
{
"path": "odrives.odrive0.axis0.controller.pos_setpoint",
"color": "#195bd7"
"color": "#1f77b4"
},
{
"path": "odrives.odrive0.axis0.encoder.pos_estimate",
"color": "#d6941a"
"color": "#ff7f0e"
}
]
},
@@ -115,11 +115,11 @@
"vars": [
{
"path": "odrives.odrive0.axis0.controller.vel_setpoint",
"color": "#195bd7"
"color": "#1f77b4"
},
{
"path": "odrives.odrive0.axis0.encoder.vel_estimate",
"color": "#d6941a"
"color": "#ff7f0e"
}
]
}
+4 -4
View File
@@ -102,11 +102,11 @@
"vars": [
{
"path": "odrives.odrive0.axis0.controller.input_pos",
"color": "#195bd7"
"color": "#1f77b4"
},
{
"path": "odrives.odrive0.axis0.encoder.pos_estimate",
"color": "#d6941a"
"color": "#ff7f0e"
}
]
},
@@ -115,11 +115,11 @@
"vars": [
{
"path": "odrives.odrive0.axis0.controller.vel_setpoint",
"color": "#195bd7"
"color": "#1f77b4"
},
{
"path": "odrives.odrive0.axis0.encoder.vel_estimate",
"color": "#d6941a"
"color": "#ff7f0e"
}
]
}
+12 -7
View File
@@ -81,11 +81,16 @@ import { JSONView } from "vue-json-component";
import { v4 as uuidv4 } from "uuid";
let plotColors = [
"#195bd7", // blue
"#d6941a", // orange
"#1ad636", // green
"#d61aba", // purple
"#d5241a", // red
"#1f77b4", // blue
"#ff7f0e", // orange
"#2ca02c", // green
"#d62728", // red
"#9467bd", // purple
"#8c564b", // brown
"#e377c2", // pink
"#7f7f7f", // gray
"#bcbd22", // olive
"#17becf", // cyan
];
let odriveEnums = {
@@ -100,7 +105,7 @@ let odriveEnums = {
value: 1,
},
{
text: "Starup Sequence",
text: "Startup Sequence",
value: 2,
},
{
@@ -150,7 +155,7 @@ let odriveEnums = {
value: 1,
},
{
text: "Starup Sequence",
text: "Startup Sequence",
value: 2,
},
{