From 91e2421047a0f3ad6cf7b466b2f95ebb8fac5c8e Mon Sep 17 00:00:00 2001 From: Thomas Robitaille Date: Wed, 4 Dec 2024 13:34:29 +0000 Subject: [PATCH] Fix SimpleScatterViewer.__init__ --- glue/viewers/scatter/viewer.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/glue/viewers/scatter/viewer.py b/glue/viewers/scatter/viewer.py index 553b692fd..cef3e0558 100644 --- a/glue/viewers/scatter/viewer.py +++ b/glue/viewers/scatter/viewer.py @@ -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)