File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,11 @@ def _setup_Jpapbp_axis(ax):
109
109
# Adapt a matplotlib colormap to a linearly transformed version -- useful for
110
110
# visualizing how colormaps look given color deficiency.
111
111
# 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'
113
117
class TransformedCMap (matplotlib .colors .Colormap ):
114
118
def __init__ (self , transform , base_cmap ):
115
119
self .transform = transform
You can’t perform that action at this time.
0 commit comments