glue-viz / glue

Linked Data Visualizations Across Multiple Files
http://glueviz.org
Other
729 stars 152 forks source link

Support regions in imageviewer #2456

Closed jfoster17 closed 10 months ago

jfoster17 commented 11 months ago

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 commented 11 months ago

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.