-
Notifications
You must be signed in to change notification settings - Fork 315
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
Minor pyqtgraph plotting improvements #27
Conversation
This is a small addition to 1D plotting
Param parse
Timestamped locations and overwrite protection
kwargs['pen'] = self.rpg.mkPen(color, width=width) | ||
# If a marker symbol is desired use the same color as the line | ||
if any([('symbol' in key) for key in kwargs]): |
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 haven't played with symbols in pyqtgraph, but if I'm reading it right you must specify symbol
in order to get symbols at all - is that right? And if so, why not just if 'symbol' in kwargs
?
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.
My tests indicate that if I specify one symbol property (such as symbolSize) it adds the symbols automatically with the default symbol.
Checking if any of these keywords occurs allows for the same behaviour as pyqtgraph while still overwriting the color of the symbol with our custom color cycle.
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.
👍
oookay, sorry about mucking up the commit history here, I'm still not sure why it 1) merged master in, and 2) decided to show all the commits it merged in (with their associated changed files) rather than just the one merge commit. I also don't know why I can't seem to get symbols to show up at all in pyqtgraph on my computer... it keeps failing on a hilarious traceback that ends:
(well yes, if you say despite this I think the changes are correct, can you check them out? |
good. Still not sure what's wrong with my pyqtgraph installation but if it works for you, 💃 ! |
Minor pyqtgraph plotting improvements
* Fix: device annotator use left and right button to insert label and ano * Fix: add device annotator Fix: add tooltip explaining left and right click * Fix: make device annotator label and formatter configurable * Fix: use formatter in placeholder string * Fix: rename loop parameter * fix: make it possible to remove annotation/label * Fix: mark parameters red in device annotator if sweept
* Fix: device annotator use left and right button to insert label and ano * Fix: add device annotator Fix: add tooltip explaining left and right click * Fix: make device annotator label and formatter configurable * Fix: use formatter in placeholder string * Fix: rename loop parameter * fix: make it possible to remove annotation/label * Fix: mark parameters red in device annotator if sweept
* Fix: device annotator use left and right button to insert label and ano * Fix: add device annotator Fix: add tooltip explaining left and right click * Fix: make device annotator label and formatter configurable * Fix: use formatter in placeholder string * Fix: rename loop parameter * fix: make it possible to remove annotation/label * Fix: mark parameters red in device annotator if sweept
* Fix: device annotator use left and right button to insert label and ano * Fix: add device annotator Fix: add tooltip explaining left and right click * Fix: make device annotator label and formatter configurable * Fix: use formatter in placeholder string * Fix: rename loop parameter * fix: make it possible to remove annotation/label * Fix: mark parameters red in device annotator if sweept
* Fix: device annotator use left and right button to insert label and ano * Fix: add device annotator Fix: add tooltip explaining left and right click * Fix: make device annotator label and formatter configurable * Fix: use formatter in placeholder string * Fix: rename loop parameter * fix: make it possible to remove annotation/label * Fix: mark parameters red in device annotator if sweept
* Fix: device annotator use left and right button to insert label and ano * Fix: add device annotator Fix: add tooltip explaining left and right click * Fix: make device annotator label and formatter configurable * Fix: use formatter in placeholder string * Fix: rename loop parameter * fix: make it possible to remove annotation/label * Fix: mark parameters red in device annotator if sweept
* Fix: device annotator use left and right button to insert label and ano * Fix: add device annotator Fix: add tooltip explaining left and right click * Fix: make device annotator label and formatter configurable * Fix: use formatter in placeholder string * Fix: rename loop parameter * fix: make it possible to remove annotation/label * Fix: mark parameters red in device annotator if sweept
* Fix: device annotator use left and right button to insert label and ano * Fix: add device annotator Fix: add tooltip explaining left and right click * Fix: make device annotator label and formatter configurable * Fix: use formatter in placeholder string * Fix: rename loop parameter * fix: make it possible to remove annotation/label * Fix: mark parameters red in device annotator if sweept
* Fix: device annotator use left and right button to insert label and ano * Fix: add device annotator Fix: add tooltip explaining left and right click * Fix: make device annotator label and formatter configurable * Fix: use formatter in placeholder string * Fix: rename loop parameter * fix: make it possible to remove annotation/label * Fix: mark parameters red in device annotator if sweept
* Fix: device annotator use left and right button to insert label and ano * Fix: add device annotator Fix: add tooltip explaining left and right click * Fix: make device annotator label and formatter configurable * Fix: use formatter in placeholder string * Fix: rename loop parameter * fix: make it possible to remove annotation/label * Fix: mark parameters red in device annotator if sweept
* Fix: device annotator use left and right button to insert label and ano * Fix: add device annotator Fix: add tooltip explaining left and right click * Fix: make device annotator label and formatter configurable * Fix: use formatter in placeholder string * Fix: rename loop parameter * fix: make it possible to remove annotation/label * Fix: mark parameters red in device annotator if sweept
* Fix: device annotator use left and right button to insert label and ano * Fix: add device annotator Fix: add tooltip explaining left and right click * Fix: make device annotator label and formatter configurable * Fix: use formatter in placeholder string * Fix: rename loop parameter * fix: make it possible to remove annotation/label * Fix: mark parameters red in device annotator if sweept
* Fix: device annotator use left and right button to insert label and ano * Fix: add device annotator Fix: add tooltip explaining left and right click * Fix: make device annotator label and formatter configurable * Fix: use formatter in placeholder string * Fix: rename loop parameter * fix: make it possible to remove annotation/label * Fix: mark parameters red in device annotator if sweept
* Fix: device annotator use left and right button to insert label and ano * Fix: add device annotator Fix: add tooltip explaining left and right click * Fix: make device annotator label and formatter configurable * Fix: use formatter in placeholder string * Fix: rename loop parameter * fix: make it possible to remove annotation/label * Fix: mark parameters red in device annotator if sweept
* Fix: device annotator use left and right button to insert label and ano * Fix: add device annotator Fix: add tooltip explaining left and right click * Fix: make device annotator label and formatter configurable * Fix: use formatter in placeholder string * Fix: rename loop parameter * fix: make it possible to remove annotation/label * Fix: mark parameters red in device annotator if sweept
* Fix: device annotator use left and right button to insert label and ano * Fix: add device annotator Fix: add tooltip explaining left and right click * Fix: make device annotator label and formatter configurable * Fix: use formatter in placeholder string * Fix: rename loop parameter * fix: make it possible to remove annotation/label * Fix: mark parameters red in device annotator if sweept
* Fix: device annotator use left and right button to insert label and ano * Fix: add device annotator Fix: add tooltip explaining left and right click * Fix: make device annotator label and formatter configurable * Fix: use formatter in placeholder string * Fix: rename loop parameter * fix: make it possible to remove annotation/label * Fix: mark parameters red in device annotator if sweept
* Fix: device annotator use left and right button to insert label and ano * Fix: add device annotator Fix: add tooltip explaining left and right click * Fix: make device annotator label and formatter configurable * Fix: use formatter in placeholder string * Fix: rename loop parameter * fix: make it possible to remove annotation/label * Fix: mark parameters red in device annotator if sweept
* Fix: device annotator use left and right button to insert label and ano * Fix: add device annotator Fix: add tooltip explaining left and right click * Fix: make device annotator label and formatter configurable * Fix: use formatter in placeholder string * Fix: rename loop parameter * fix: make it possible to remove annotation/label * Fix: mark parameters red in device annotator if sweept
* Fix: device annotator use left and right button to insert label and ano * Fix: add device annotator Fix: add tooltip explaining left and right click * Fix: make device annotator label and formatter configurable * Fix: use formatter in placeholder string * Fix: rename loop parameter * fix: make it possible to remove annotation/label * Fix: mark parameters red in device annotator if sweept
In the spirit of keeping pull-requests small and quick I have decided to send a pull request for my changes to plotting.
I have focused only on 3D (heatmap) plotting
This pull request changes the following
Possible improvements (not planned on including in this PR)
What is not in this pull request (but is still related)
If this pull request is merged #23 can be closed.