-
Notifications
You must be signed in to change notification settings - Fork 2
Tracking skyplot optimization (#203) #216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracking skyplot optimization (#203) #216
Conversation
* This defines a common rounded rectangle radius for chart legends in QML Constants, and makes SkyPlot chart legend use it for improved look.
* This improves the styling of the control checkboxes at the bottom of the Sky Plot tab, using the newer small checkboxes, and centering them. * This also does a little bit of improvement to when the labels and lagend are shown, by restarting the timer.
* Bound tab visibility to series length * Set the constant things in the series from QML instead of python. (width and use OpenGL) * Have timer triggered on start so there's less time before data is populated.
* Populate the SkyPlot series data from Python, reducing round trip calls from QML into Python, back into QML again. * Make point labels show and hide synchronized with the enabling and disabling of the labels, as well as when series are hidden and shown. * Now just about all elements in the tab that reference series data are referencing that data directly from the series via all_series series list.
| series.axisYRight = trackingSignalsYAxis; | ||
| series.width = Constants.commonChart.lineWidth; | ||
| // Color and useOpenGL will be set in Python with fill_all_series call. | ||
| series.useOpenGL = Globals.useOpenGL; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I decided it was silly I was pushing this down into Python to set.
| id: trackingSignalsCheckboxes | ||
|
|
||
| Layout.fillWidth: true | ||
| Layout.preferredHeight: Constants.trackingSkyPlot.checkboxHeight |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this hardcoded space is too large now with the reduction of the size of the checkboxes. Either need to set to the anticipated size of the checkmarks or remove this line so it just uses the minimum necessary height.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed! Looks even better. Good catch.
|
That CI test that failed is flaky "realtime delay" so feel free to just rerun if you see this |
* Remove extra explicit height specified in the TrackingSkyPlotTab checkbox row. * Remove unused trackingSkyPlot constants from Constants.qml
|
This optimizes drawing of the skyplot chart, and the tab in general.
Populate SkyPlot series data from Python
calls from QML into Python, back into QML again.
disabling of the labels, as well as when series are hidden and shown.
referencing that data directly from the series via all_series series
list.
Small improvements to the Tracking Signals tab
(width and use OpenGL)
populated.
Use small checkboxes, improve check layout in skyplot
the Sky Plot tab, using the newer small checkboxes, and centering
them.
lagend are shown, by restarting the timer.
Define common rounded rect radius for legends
QML Constants, and makes SkyPlot chart legend use it for improved
look.