File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323
2424# This list is being used for compatibility with Axes.grid, which
2525# allows all Line2D kwargs.
26- _line_AI = martist .ArtistInspector (mlines .Line2D )
27- _line_param_names = _line_AI .get_setters ()
28- _line_param_aliases = [list (d )[0 ] for d in _line_AI .aliasd .values ()]
26+ _line_inspector = martist .ArtistInspector (mlines .Line2D )
27+ _line_param_names = _line_inspector .get_setters ()
28+ _line_param_aliases = [list (d )[0 ] for d in _line_inspector .aliasd .values ()]
2929_gridline_param_names = ['grid_' + name
3030 for name in _line_param_names + _line_param_aliases ]
3131
Original file line number Diff line number Diff line change @@ -138,8 +138,8 @@ def plot_examples(colormaps):
138138# middle 0.5 of the colormap. However, we need to interpolate from a larger
139139# colormap, otherwise the new colormap will have repeated values.
140140
141- viridisBig = cm .get_cmap ('viridis' , 512 )
142- newcmp = ListedColormap (viridisBig (np .linspace (0.25 , 0.75 , 256 )))
141+ viridis_big = cm .get_cmap ('viridis' , 512 )
142+ newcmp = ListedColormap (viridis_big (np .linspace (0.25 , 0.75 , 256 )))
143143plot_examples ([viridis , newcmp ])
144144
145145##############################################################################
You can’t perform that action at this time.
0 commit comments