Skip to content
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

Merged
merged 10 commits into from
Nov 10, 2023

Conversation

jfoster17
Copy link
Member

Add Region Layer Artist to ImageViewer

Description

This adds a ScatterRegionLayerArtist to the ImageViewer so that RegionData datasets are plotted as regions rather than points. A parallel PR for glue-qt is required to actually make this work.

@jfoster17 jfoster17 marked this pull request as ready for review November 1, 2023 17:46
@jfoster17
Copy link
Member Author

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.

Copy link
Member

@astrofrog astrofrog left a 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.

@astrofrog astrofrog merged commit 881345f into glue-viz:main Nov 10, 2023
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants