@@ -4324,8 +4324,8 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
43244324 vmin, vmax : scalar, default: None
43254325 *vmin* and *vmax* are used in conjunction with *norm* to normalize
43264326 luminance data. If None, the respective min and max of the color
4327- array is used. *vmin* and *vmax* are ignored if you pass a *norm*
4328- instance .
4327+ array is used.
4328+ It is deprecated to use *vmin*/*vmax* when *norm* is given .
43294329
43304330 alpha : scalar, default: None
43314331 The alpha blending value, between 0 (transparent) and 1 (opaque).
@@ -4450,11 +4450,7 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
44504450collection .set_array (c )
44514451collection .set_cmap (cmap )
44524452collection .set_norm (norm )
4453-
4454- if vmin is not None or vmax is not None :
4455- collection .set_clim (vmin ,vmax )
4456- else :
4457- collection .autoscale_None ()
4453+ collection ._scale_norm (norm ,vmin ,vmax )
44584454
44594455# Classic mode only:
44604456# ensure there are margins to allow for the
@@ -4560,7 +4556,8 @@ def hexbin(self, x, y, C=None, gridsize=100, bins=None,
45604556 The colorbar range. If *None*, suitable min/max values are
45614557 automatically chosen by the `~.Normalize` instance (defaults to
45624558 the respective min/max values of the bins in case of the default
4563- linear scaling). This is ignored if *norm* is given.
4559+ linear scaling).
4560+ It is deprecated to use *vmin*/*vmax* when *norm* is given.
45644561
45654562 alpha : float between 0 and 1, optional
45664563 The alpha blending value, between 0 (transparent) and 1 (opaque).
@@ -4804,11 +4801,7 @@ def reduce_C_function(C: array) -> float
48044801collection .set_norm (norm )
48054802collection .set_alpha (alpha )
48064803collection .update (kwargs )
4807-
4808- if vmin is not None or vmax is not None :
4809- collection .set_clim (vmin ,vmax )
4810- else :
4811- collection .autoscale_None ()
4804+ collection ._scale_norm (norm ,vmin ,vmax )
48124805
48134806corners = ((xmin ,ymin ), (xmax ,ymax ))
48144807self .update_datalim (corners )
@@ -5530,7 +5523,7 @@ def imshow(self, X, cmap=None, norm=None, aspect=None,
55305523 When using scalar data and no explicit *norm*, *vmin* and *vmax*
55315524 define the data range that the colormap covers. By default,
55325525 the colormap covers the complete value range of the supplied
5533- data. *vmin*, *vmax*are ignored if the *norm*parameter isused .
5526+ data.It is deprecated to use *vmin*/ *vmax*when *norm* isgiven .
55345527
55355528 origin : {'upper', 'lower'}, optional
55365529 Place the [0, 0] index of the array in the upper left or lower left
@@ -5627,10 +5620,7 @@ def imshow(self, X, cmap=None, norm=None, aspect=None,
56275620if im .get_clip_path ()is None :
56285621# image does not already have clipping set, clip to axes patch
56295622im .set_clip_path (self .patch )
5630- if vmin is not None or vmax is not None :
5631- im .set_clim (vmin ,vmax )
5632- else :
5633- im .autoscale_None ()
5623+ im ._scale_norm (norm ,vmin ,vmax )
56345624im .set_url (url )
56355625
56365626# update ax.dataLim, and, if autoscaling, set viewLim
@@ -5769,6 +5759,7 @@ def pcolor(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
57695759 automatically chosen by the `~.Normalize` instance (defaults to
57705760 the respective min/max values of *C* in case of the default linear
57715761 scaling).
5762+ It is deprecated to use *vmin*/*vmax* when *norm* is given.
57725763
57735764 edgecolors : {'none', None, 'face', color, color sequence}, optional
57745765 The color of the edges. Defaults to 'none'. Possible values:
@@ -5905,8 +5896,7 @@ def pcolor(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
59055896collection .set_array (C )
59065897collection .set_cmap (cmap )
59075898collection .set_norm (norm )
5908- collection .set_clim (vmin ,vmax )
5909- collection .autoscale_None ()
5899+ collection ._scale_norm (norm ,vmin ,vmax )
59105900self .grid (False )
59115901
59125902x = X .compressed ()
@@ -6000,6 +5990,7 @@ def pcolormesh(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
60005990 automatically chosen by the `~.Normalize` instance (defaults to
60015991 the respective min/max values of *C* in case of the default linear
60025992 scaling).
5993+ It is deprecated to use *vmin*/*vmax* when *norm* is given.
60035994
60045995 edgecolors : {'none', None, 'face', color, color sequence}, optional
60055996 The color of the edges. Defaults to 'none'. Possible values:
@@ -6119,8 +6110,7 @@ def pcolormesh(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
61196110collection .set_array (C )
61206111collection .set_cmap (cmap )
61216112collection .set_norm (norm )
6122- collection .set_clim (vmin ,vmax )
6123- collection .autoscale_None ()
6113+ collection ._scale_norm (norm ,vmin ,vmax )
61246114
61256115self .grid (False )
61266116
@@ -6234,6 +6224,7 @@ def pcolorfast(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
62346224 automatically chosen by the `~.Normalize` instance (defaults to
62356225 the respective min/max values of *C* in case of the default linear
62366226 scaling).
6227+ It is deprecated to use *vmin*/*vmax* when *norm* is given.
62376228
62386229 alpha : scalar, default: None
62396230 The alpha blending value, between 0 (transparent) and 1 (opaque).
@@ -6316,10 +6307,9 @@ def pcolorfast(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
63166307self .add_image (im )
63176308ret = im
63186309
6319- if vmin is not None or vmax is not None :
6320- ret .set_clim (vmin ,vmax )
6321- elif np .ndim (C )== 2 :# C.ndim == 3 is RGB(A) so doesn't need scaling.
6322- ret .autoscale_None ()
6310+ if np .ndim (C )== 2 :# C.ndim == 3 is RGB(A) so doesn't need scaling.
6311+ ret ._scale_norm (norm ,vmin ,vmax )
6312+
63236313if ret .get_clip_path ()is None :
63246314# image does not already have clipping set, clip to axes patch
63256315ret .set_clip_path (self .patch )