Skip to content

Commit

Permalink
enable antialiasing for the tracking view (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Mobarak authored Apr 1, 2021
1 parent 970732c commit 4db5fed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions resources/TrackingTabComponents/TrackingSignalsTab.qml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Item {
backgroundColor: "#CDC9C9"
plotAreaColor: "#FFFFFF"
legend.visible: false
antialiasing: true

Rectangle {
id: lineLegend
Expand Down Expand Up @@ -130,15 +131,17 @@ Item {
trackingSignalsChart.removeSeries(lines[idx][0])
var line = trackingSignalsChart.createSeries(ChartView.SeriesTypeLine, labels[idx], trackingSignalsXAxis);
line.color = colors[idx];
line.width = 1.5;
line.width = 1;
line.axisYRight = trackingSignalsYAxis;
// line.useOpenGL = true; // [CPP-93] Invesigate usage of `useOpenGL` in plots
lines[idx] = [line, labels[idx]];
}
} else {
var line = trackingSignalsChart.createSeries(ChartView.SeriesTypeLine, labels[idx], trackingSignalsXAxis);
line.color = colors[idx];
line.width = 1.5;
line.width = 1;
line.axisYRight = trackingSignalsYAxis;
// line.useOpenGL = true; // [CPP-93] Invesigate usage of `useOpenGL` in plots
lines.push([line, labels[idx]]);
}
}
Expand Down
4 changes: 2 additions & 2 deletions resources/view.qml
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,14 @@ ApplicationWindow {
name: "Horizontal [m/s]"
axisX: x_axis
axisY: y_axis
//useOpenGL: true
// useOpenGL: true // [CPP-93] Invesigate usage of `useOpenGL` in plots
}
LineSeries {
id: vseries
name: "Vertical [m/s]"
axisX: x_axis
axisY: y_axis
//useOpenGL: true
// useOpenGL: true // [CPP-93] Invesigate usage of `useOpenGL` in plots
}

Timer {
Expand Down

0 comments on commit 4db5fed

Please sign in to comment.