Skip to content

Commit

Permalink
Backport PR spacetelescope#137: improve initial scatter/mouseover per…
Browse files Browse the repository at this point in the history
…formance (spacetelescope#138)

Co-authored-by: Kyle Conroy <[email protected]>
  • Loading branch information
meeseeksmachine and kecnry authored Sep 5, 2024
1 parent 7e691b7 commit 9e204bd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

* bumps lightkurve to 2.5.0 to include upstream bug fixes. [#132]

* Improve scatter viewer and mouseover performance. [#137]


0.4.2 (07.23.2024)
------------------
Expand Down
5 changes: 1 addition & 4 deletions lcviz/plugins/coords_info/coords_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,7 @@ def _cursor_fallback():
if self.dataset.selected != 'auto' and self.dataset.selected != lyr.layer.label:
continue

# glue-jupyter 1.18 changed from lyr.scatter to lyr.scatter_mark
# TODO: once glue-jupyter is pinned to 1.18 or later, update this to:
# scatter = lyr.scatter_mark
scatter = getattr(lyr, 'scatter_mark', getattr(lyr, 'scatter', None))
scatter = lyr.scatter_mark
lyr_x, lyr_y = scatter.x, scatter.y
if not len(lyr_x):
continue
Expand Down
1 change: 1 addition & 0 deletions lcviz/viewers.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ def _apply_layer_defaults(self, layer_state):
if getattr(layer_state.layer, 'meta', {}).get('Plugin', None) == 'Binning':
# increased size of binned results, by default
layer_state.size = 5
layer_state.points_mode = 'markers'

def set_plot_axes(self):
# set which components should be plotted
Expand Down

0 comments on commit 9e204bd

Please sign in to comment.