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):
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'
113117class TransformedCMap (matplotlib .colors .Colormap ):
114118 def __init__ (self , transform , base_cmap ):
115119 self .transform = transform
You can’t perform that action at this time.
0 commit comments