glue-viz / glue-vispy-viewers

3-d data viewers for glue based on VisPy
http://glueviz.org/en/stable/whatsnew/experimental_3d.html#experimental-3d
BSD 2-Clause "Simplified" License
25 stars 21 forks source link

Flip limits button doesn't work correctly in 3D scatter plot #360

Closed astrofrog closed 3 years ago

astrofrog commented 3 years ago

In the 3D scatter plot, if the 'flip limits' button is clicked, the limits do flip but the markers disappear.

astrofrog commented 3 years ago

Looks like this is due to the hard-coded assumption that min < max:

https://github.com/glue-viz/glue-vispy-viewers/blob/38e3eed7452e5750f8cb3d28d6d282690c1d4680/glue_vispy_viewers/scatter/layer_artist.py#L195