Skip to content

Commit 1044eb2

Browse files
committed
Define cmap_name and added missing
1 parent a37fbb9 commit 1044eb2

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

glue/viewers/scatter3d/layer_state.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ def flip_size(self):
136136
def flip_cmap(self):
137137
self.cmap_lim_helper.flip_limits()
138138

139+
@property
140+
def cmap_name(self):
141+
return colormaps.name_from_cmap(self.cmap)
142+
139143
@property
140144
def point_sizes(self):
141145
if self.size_mode is None:

glue/viewers/volume3d/layer_state.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,7 @@ def _update_priority(self, name):
7272

7373
def flip_limits(self):
7474
self.lim_helper.flip_limits()
75+
76+
@property
77+
def cmap_name(self):
78+
return colormaps.name_from_cmap(self.cmap)

0 commit comments

Comments
 (0)