mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-09-22 08:04:07 +08:00
[GUI] Changed plot colors to use the matplotlib default color sequence
This commit is contained in:
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user