Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1270fc2

Browse files
committed
STY: Rename some camelCase variables.
1 parent 6d93441 commit 1270fc2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/matplotlib/axis.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
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

tutorials/colors/colormap-manipulation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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)))
143143
plot_examples([viridis, newcmp])
144144

145145
##############################################################################

0 commit comments

Comments
 (0)