We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af040f0 commit adf73dbCopy full SHA for adf73db
viscm/gui.py
@@ -109,7 +109,11 @@ def _setup_Jpapbp_axis(ax):
109
# Adapt a matplotlib colormap to a linearly transformed version -- useful for
110
# visualizing how colormaps look given color deficiency.
111
# Kinda a hack, b/c we inherit from Colormap (this is required), but then
112
-# ignore its implementation entirely.
+# ignore its implementation entirely. This results in errors at runtime:
113
+# File "/<env>/site-packages/matplotlib/artist.py", line 1343, in format_cursor_data # noqa: E501
114
+# n = self.cmap.N
115
+# ^^^^^^^^^^^
116
+# AttributeError: 'TransformedCMap' object has no attribute 'N'
117
class TransformedCMap(matplotlib.colors.Colormap):
118
def __init__(self, transform, base_cmap):
119
self.transform = transform
0 commit comments