Skip to content

Commit

Permalink
Fix SimpleScatterViewer.__init__
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Dec 4, 2024
1 parent 7fc95cc commit 91e2421
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions glue/viewers/scatter/viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ class SimpleScatterViewer(MatplotlibScatterMixin, SimpleMatplotlibViewer):
_data_artist_cls = ScatterLayerArtist
_subset_artist_cls = ScatterLayerArtist

def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
def __init__(self, session, parent=None, state=None):
proj = None if not state or not state.plot_mode else state.plot_mode
SimpleMatplotlibViewer.__init__(self, session, parent=parent, state=state, projection=proj)
MatplotlibScatterMixin.setup_callbacks(self)

0 comments on commit 91e2421

Please sign in to comment.