Skip to content

Commit adf73db

Browse files
committed
Add more context to comment
1 parent af040f0 commit adf73db

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

viscm/gui.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,11 @@ def _setup_Jpapbp_axis(ax):
109109
# Adapt a matplotlib colormap to a linearly transformed version -- useful for
110110
# visualizing how colormaps look given color deficiency.
111111
# Kinda a hack, b/c we inherit from Colormap (this is required), but then
112-
# ignore its implementation entirely.
112+
# 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'
113117
class TransformedCMap(matplotlib.colors.Colormap):
114118
def __init__(self, transform, base_cmap):
115119
self.transform = transform

0 commit comments

Comments
 (0)