-
Notifications
You must be signed in to change notification settings - Fork 153
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
Support regions in imageviewer #2456
Support regions in imageviewer #2456
Conversation
The codecov report here is misleading because we actually test out this code in the associated glue-qt PR. We don't generally have standalone non-qt state or layer_artist tests because they work mostly in the context of an actual viewer. This PR does not enable exporting a RegionScatterLayer as a python script. Currently RegionScatterLayers are only implemented as a layer on top of an ImageViewer where export-to-python does not work with non-image-layers anyway. |
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.
Looks good to me! I do want to start being able to add tests in glue-core for this kind of functionality, and I'll open a PR soon to set up some simple bare-bones Matplotlib-only 'viewers' that can be used to write tests against.
Add Region Layer Artist to ImageViewer
Description
This adds a
ScatterRegionLayerArtist
to the ImageViewer so thatRegionData
datasets are plotted as regions rather than points. A parallel PR for glue-qt is required to actually make this work.