Skip to content

Commit 954bf7a

Browse files
committed
MAINT updated pyplot with new boilerplate script
1 parent 5de2f95 commit 954bf7a

File tree

1 file changed

+46
-22
lines changed

1 file changed

+46
-22
lines changed

lib/matplotlib/pyplot.py

Lines changed: 46 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2605,7 +2605,8 @@ def boxplot(x, notch=None, sym=None, vert=None, whis=None, positions=None,
26052605
conf_intervals=None, meanline=None, showmeans=None, showcaps=None,
26062606
showbox=None, showfliers=None, boxprops=None, labels=None,
26072607
flierprops=None, medianprops=None, meanprops=None, capprops=None,
2608-
whiskerprops=None, manage_xticks=True, hold=None, data=None):
2608+
whiskerprops=None, manage_xticks=True, autorange=False, zorder=None,
2609+
hold=None, data=None):
26092610
ax = gca()
26102611
# allow callers to override the hold state by passing hold=True|False
26112612
washold = ax.ishold()
@@ -2624,7 +2625,8 @@ def boxplot(x, notch=None, sym=None, vert=None, whis=None, positions=None,
26242625
flierprops=flierprops, medianprops=medianprops,
26252626
meanprops=meanprops, capprops=capprops,
26262627
whiskerprops=whiskerprops,
2627-
manage_xticks=manage_xticks, data=data)
2628+
manage_xticks=manage_xticks, autorange=autorange,
2629+
zorder=zorder, data=data)
26282630
finally:
26292631
ax.hold(washold)
26302632

@@ -2812,17 +2814,17 @@ def fill_between(x, y1, y2=0, where=None, interpolate=False, step=None,
28122814
# This function was autogenerated by boilerplate.py. Do not edit as
28132815
# changes will be lost
28142816
@_autogen_docstring(Axes.fill_betweenx)
2815-
def fill_betweenx(y, x1, x2=0, where=None, step=None, hold=None, data=None,
2816-
**kwargs):
2817+
def fill_betweenx(y, x1, x2=0, where=None, step=None, interpolate=False,
2818+
hold=None, data=None, **kwargs):
28172819
ax = gca()
28182820
# allow callers to override the hold state by passing hold=True|False
28192821
washold = ax.ishold()
28202822

28212823
if hold is not None:
28222824
ax.hold(hold)
28232825
try:
2824-
ret = ax.fill_betweenx(y, x1, x2=x2, where=where, step=step, data=data,
2825-
**kwargs)
2826+
ret = ax.fill_betweenx(y, x1, x2=x2, where=where, step=step,
2827+
interpolate=interpolate, data=data, **kwargs)
28262828
finally:
28272829
ax.hold(washold)
28282830

@@ -2857,7 +2859,7 @@ def hexbin(x, y, C=None, gridsize=100, bins=None, xscale='linear',
28572859
# This function was autogenerated by boilerplate.py. Do not edit as
28582860
# changes will be lost
28592861
@_autogen_docstring(Axes.hist)
2860-
def hist(x, bins=10, range=None, normed=False, weights=None, cumulative=False,
2862+
def hist(x, bins=None, range=None, normed=False, weights=None, cumulative=False,
28612863
bottom=None, histtype='bar', align='mid', orientation='vertical',
28622864
rwidth=None, log=False, color=None, label=None, stacked=False,
28632865
hold=None, data=None, **kwargs):
@@ -3285,7 +3287,8 @@ def step(x, y, *args, **kwargs):
32853287
@_autogen_docstring(Axes.streamplot)
32863288
def streamplot(x, y, u, v, density=1, linewidth=None, color=None, cmap=None,
32873289
norm=None, arrowsize=1, arrowstyle='-|>', minlength=0.1,
3288-
transform=None, zorder=2, start_points=None, hold=None, data=None):
3290+
transform=None, zorder=None, start_points=None, hold=None,
3291+
data=None):
32893292
ax = gca()
32903293
# allow callers to override the hold state by passing hold=True|False
32913294
washold = ax.ishold()
@@ -3722,20 +3725,6 @@ def winter():
37223725
im.set_cmap(cm.winter)
37233726

37243727

3725-
# This function was autogenerated by boilerplate.py. Do not edit as
3726-
# changes will be lost
3727-
def spectral():
3728-
'''
3729-
set the default colormap to spectral and apply to current image if any.
3730-
See help(colormaps) for more information
3731-
'''
3732-
rc('image', cmap='spectral')
3733-
im = gci()
3734-
3735-
if im is not None:
3736-
im.set_cmap(cm.spectral)
3737-
3738-
37393728
# This function was autogenerated by boilerplate.py. Do not edit as
37403729
# changes will be lost
37413730
def magma():
@@ -3791,4 +3780,39 @@ def viridis():
37913780
if im is not None:
37923781
im.set_cmap(cm.viridis)
37933782

3783+
3784+
# This function was autogenerated by boilerplate.py. Do not edit as
3785+
# changes will be lost
3786+
def nipy_spectral():
3787+
'''
3788+
set the default colormap to nipy_spectral and apply to current image if any.
3789+
See help(colormaps) for more information
3790+
'''
3791+
rc('image', cmap='nipy_spectral')
3792+
im = gci()
3793+
3794+
if im is not None:
3795+
im.set_cmap(cm.nipy_spectral)
3796+
3797+
3798+
# This function was autogenerated by boilerplate.py. Do not edit as
3799+
# changes will be lost
3800+
def spectral():
3801+
'''
3802+
set the default colormap to spectral and apply to current image if any.
3803+
See help(colormaps) for more information
3804+
'''
3805+
from matplotlib.cbook import warn_deprecated
3806+
warn_deprecated(
3807+
"2.0",
3808+
name="spectral",
3809+
obj_type="colormap"
3810+
)
3811+
3812+
rc('image', cmap='spectral')
3813+
im = gci()
3814+
3815+
if im is not None:
3816+
im.set_cmap(cm.spectral)
3817+
37943818
_setup_pyplot_info_docstrings()

0 commit comments

Comments
 (0)