We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c088cc4 commit ac35505Copy full SHA for ac35505
qt/python/mantidqt/mantidqt/widgets/colorbar/colorbar.py
@@ -182,7 +182,11 @@ def set_mappable(self, mappable):
182
self.colorbar = Colorbar(ax=self.ax, mappable=mappable)
183
self.cmin_value, self.cmax_value = mappable.get_clim()
184
self.update_clim_text()
185
- self.cmap_changed(cmap, False)
+ try:
186
+ self.cmap_changed(cmap, False)
187
+ except ValueError:
188
+ # the default mantid colormap is not available, just use matplotlib default
189
+ pass
190
191
mappable_cmap = get_current_cmap(mappable)
192
0 commit comments