@@ -4344,8 +4344,8 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
43444344 vmin, vmax : scalar, optional, default: None
43454345 *vmin* and *vmax* are used in conjunction with *norm* to normalize
43464346 luminance data. If None, the respective min and max of the color
4347- array is used. *vmin* and *vmax* are ignored if you pass a *norm*
4348- instance .
4347+ array is used.
4348+ It is deprecated to use *vmin*/*vmax* when *norm* is given .
43494349
43504350 alpha : scalar, optional, default: None
43514351 The alpha blending value, between 0 (transparent) and 1 (opaque).
@@ -4470,11 +4470,7 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
44704470collection .set_array (c )
44714471collection .set_cmap (cmap )
44724472collection .set_norm (norm )
4473-
4474- if vmin is not None or vmax is not None :
4475- collection .set_clim (vmin ,vmax )
4476- else :
4477- collection .autoscale_None ()
4473+ collection ._scale_norm (norm ,vmin ,vmax )
44784474
44794475# Classic mode only:
44804476# ensure there are margins to allow for the
@@ -4580,7 +4576,8 @@ def hexbin(self, x, y, C=None, gridsize=100, bins=None,
45804576 The colorbar range. If *None*, suitable min/max values are
45814577 automatically chosen by the `~.Normalize` instance (defaults to
45824578 the respective min/max values of the bins in case of the default
4583- linear scaling). This is ignored if *norm* is given.
4579+ linear scaling).
4580+ It is deprecated to use *vmin*/*vmax* when *norm* is given.
45844581
45854582 alpha : float between 0 and 1, optional
45864583 The alpha blending value, between 0 (transparent) and 1 (opaque).
@@ -4824,11 +4821,7 @@ def reduce_C_function(C: array) -> float
48244821collection .set_norm (norm )
48254822collection .set_alpha (alpha )
48264823collection .update (kwargs )
4827-
4828- if vmin is not None or vmax is not None :
4829- collection .set_clim (vmin ,vmax )
4830- else :
4831- collection .autoscale_None ()
4824+ collection ._scale_norm (norm ,vmin ,vmax )
48324825
48334826corners = ((xmin ,ymin ), (xmax ,ymax ))
48344827self .update_datalim (corners )
@@ -5555,7 +5548,7 @@ def imshow(self, X, cmap=None, norm=None, aspect=None,
55555548 When using scalar data and no explicit *norm*, *vmin* and *vmax*
55565549 define the data range that the colormap covers. By default,
55575550 the colormap covers the complete value range of the supplied
5558- data. *vmin*, *vmax*are ignored if the *norm*parameter isused .
5551+ data.It is deprecated to use *vmin*/ *vmax*when *norm* isgiven .
55595552
55605553 origin : {'upper', 'lower'}, optional
55615554 Place the [0, 0] index of the array in the upper left or lower left
@@ -5652,10 +5645,7 @@ def imshow(self, X, cmap=None, norm=None, aspect=None,
56525645if im .get_clip_path ()is None :
56535646# image does not already have clipping set, clip to axes patch
56545647im .set_clip_path (self .patch )
5655- if vmin is not None or vmax is not None :
5656- im .set_clim (vmin ,vmax )
5657- else :
5658- im .autoscale_None ()
5648+ im ._scale_norm (norm ,vmin ,vmax )
56595649im .set_url (url )
56605650
56615651# update ax.dataLim, and, if autoscaling, set viewLim
@@ -5794,6 +5784,7 @@ def pcolor(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
57945784 automatically chosen by the `~.Normalize` instance (defaults to
57955785 the respective min/max values of *C* in case of the default linear
57965786 scaling).
5787+ It is deprecated to use *vmin*/*vmax* when *norm* is given.
57975788
57985789 edgecolors : {'none', None, 'face', color, color sequence}, optional
57995790 The color of the edges. Defaults to 'none'. Possible values:
@@ -5930,8 +5921,7 @@ def pcolor(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
59305921collection .set_array (C )
59315922collection .set_cmap (cmap )
59325923collection .set_norm (norm )
5933- collection .set_clim (vmin ,vmax )
5934- collection .autoscale_None ()
5924+ collection ._scale_norm (norm ,vmin ,vmax )
59355925self .grid (False )
59365926
59375927x = X .compressed ()
@@ -6025,6 +6015,7 @@ def pcolormesh(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
60256015 automatically chosen by the `~.Normalize` instance (defaults to
60266016 the respective min/max values of *C* in case of the default linear
60276017 scaling).
6018+ It is deprecated to use *vmin*/*vmax* when *norm* is given.
60286019
60296020 edgecolors : {'none', None, 'face', color, color sequence}, optional
60306021 The color of the edges. Defaults to 'none'. Possible values:
@@ -6144,8 +6135,7 @@ def pcolormesh(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
61446135collection .set_array (C )
61456136collection .set_cmap (cmap )
61466137collection .set_norm (norm )
6147- collection .set_clim (vmin ,vmax )
6148- collection .autoscale_None ()
6138+ collection ._scale_norm (norm ,vmin ,vmax )
61496139
61506140self .grid (False )
61516141
@@ -6259,6 +6249,7 @@ def pcolorfast(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
62596249 automatically chosen by the `~.Normalize` instance (defaults to
62606250 the respective min/max values of *C* in case of the default linear
62616251 scaling).
6252+ It is deprecated to use *vmin*/*vmax* when *norm* is given.
62626253
62636254 alpha : scalar, optional, default: None
62646255 The alpha blending value, between 0 (transparent) and 1 (opaque).
@@ -6341,10 +6332,9 @@ def pcolorfast(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
63416332self .add_image (im )
63426333ret = im
63436334
6344- if vmin is not None or vmax is not None :
6345- ret .set_clim (vmin ,vmax )
6346- elif np .ndim (C )== 2 :# C.ndim == 3 is RGB(A) so doesn't need scaling.
6347- ret .autoscale_None ()
6335+ if np .ndim (C )== 2 :# C.ndim == 3 is RGB(A) so doesn't need scaling.
6336+ ret ._scale_norm (norm ,vmin ,vmax )
6337+
63486338if ret .get_clip_path ()is None :
63496339# image does not already have clipping set, clip to axes patch
63506340ret .set_clip_path (self .patch )