From 4a12b464db0510a6f0a447b62d609200a4cf96be Mon Sep 17 00:00:00 2001 From: Thomas Robitaille Date: Thu, 16 Nov 2017 18:10:05 +0000 Subject: [PATCH] Show pixel and world coordinates in combo box for 3D scatter plot --- glue_vispy_viewers/scatter/viewer_state.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/glue_vispy_viewers/scatter/viewer_state.py b/glue_vispy_viewers/scatter/viewer_state.py index 6fac94dc..55126feb 100644 --- a/glue_vispy_viewers/scatter/viewer_state.py +++ b/glue_vispy_viewers/scatter/viewer_state.py @@ -10,9 +10,12 @@ def __init__(self, **kwargs): super(Vispy3DScatterViewerState, self).__init__() - self.x_att_helper = ComponentIDComboHelper(self, 'x_att', categorical=False) - self.y_att_helper = ComponentIDComboHelper(self, 'y_att', categorical=False) - self.z_att_helper = ComponentIDComboHelper(self, 'z_att', categorical=False) + self.x_att_helper = ComponentIDComboHelper(self, 'x_att', categorical=False, + pixel_coord=True, world_coord=True) + self.y_att_helper = ComponentIDComboHelper(self, 'y_att', categorical=False, + pixel_coord=True, world_coord=True) + self.z_att_helper = ComponentIDComboHelper(self, 'z_att', categorical=False, + pixel_coord=True, world_coord=True) self.add_callback('layers', self._on_layers_change)