@@ -4297,8 +4297,8 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
42974297 vmin, vmax : scalar, default: None
42984298 *vmin* and *vmax* are used in conjunction with *norm* to normalize
42994299 luminance data. If None, the respective min and max of the color
4300- array is used. *vmin* and *vmax* are ignored if you pass a *norm*
4301- instance .
4300+ array is used.
4301+ It is deprecated to use *vmin*/*vmax* when *norm* is given .
43024302
43034303 alpha : scalar, default: None
43044304 The alpha blending value, between 0 (transparent) and 1 (opaque).
@@ -4419,11 +4419,7 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
44194419collection .set_array (c )
44204420collection .set_cmap (cmap )
44214421collection .set_norm (norm )
4422-
4423- if vmin is not None or vmax is not None :
4424- collection .set_clim (vmin ,vmax )
4425- else :
4426- collection .autoscale_None ()
4422+ collection ._scale_norm (norm ,vmin ,vmax )
44274423
44284424# Classic mode only:
44294425# ensure there are margins to allow for the
@@ -4529,7 +4525,8 @@ def hexbin(self, x, y, C=None, gridsize=100, bins=None,
45294525 The colorbar range. If *None*, suitable min/max values are
45304526 automatically chosen by the `~.Normalize` instance (defaults to
45314527 the respective min/max values of the bins in case of the default
4532- linear scaling). This is ignored if *norm* is given.
4528+ linear scaling).
4529+ It is deprecated to use *vmin*/*vmax* when *norm* is given.
45334530
45344531 alpha : float between 0 and 1, optional
45354532 The alpha blending value, between 0 (transparent) and 1 (opaque).
@@ -4773,11 +4770,7 @@ def reduce_C_function(C: array) -> float
47734770collection .set_norm (norm )
47744771collection .set_alpha (alpha )
47754772collection .update (kwargs )
4776-
4777- if vmin is not None or vmax is not None :
4778- collection .set_clim (vmin ,vmax )
4779- else :
4780- collection .autoscale_None ()
4773+ collection ._scale_norm (norm ,vmin ,vmax )
47814774
47824775corners = ((xmin ,ymin ), (xmax ,ymax ))
47834776self .update_datalim (corners )
@@ -5493,7 +5486,7 @@ def imshow(self, X, cmap=None, norm=None, aspect=None,
54935486 When using scalar data and no explicit *norm*, *vmin* and *vmax*
54945487 define the data range that the colormap covers. By default,
54955488 the colormap covers the complete value range of the supplied
5496- data. *vmin*, *vmax*are ignored if the *norm*parameter isused .
5489+ data.It is deprecated to use *vmin*/ *vmax*when *norm* isgiven .
54975490
54985491 origin : {'upper', 'lower'}, default: :rc:`image.origin`
54995492 Place the [0, 0] index of the array in the upper left or lower
@@ -5589,10 +5582,7 @@ def imshow(self, X, cmap=None, norm=None, aspect=None,
55895582if im .get_clip_path ()is None :
55905583# image does not already have clipping set, clip to axes patch
55915584im .set_clip_path (self .patch )
5592- if vmin is not None or vmax is not None :
5593- im .set_clim (vmin ,vmax )
5594- else :
5595- im .autoscale_None ()
5585+ im ._scale_norm (norm ,vmin ,vmax )
55965586im .set_url (url )
55975587
55985588# update ax.dataLim, and, if autoscaling, set viewLim
@@ -5731,6 +5721,7 @@ def pcolor(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
57315721 automatically chosen by the `~.Normalize` instance (defaults to
57325722 the respective min/max values of *C* in case of the default linear
57335723 scaling).
5724+ It is deprecated to use *vmin*/*vmax* when *norm* is given.
57345725
57355726 edgecolors : {'none', None, 'face', color, color sequence}, optional
57365727 The color of the edges. Defaults to 'none'. Possible values:
@@ -5867,8 +5858,7 @@ def pcolor(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
58675858collection .set_array (C )
58685859collection .set_cmap (cmap )
58695860collection .set_norm (norm )
5870- collection .set_clim (vmin ,vmax )
5871- collection .autoscale_None ()
5861+ collection ._scale_norm (norm ,vmin ,vmax )
58725862self .grid (False )
58735863
58745864x = X .compressed ()
@@ -5962,6 +5952,7 @@ def pcolormesh(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
59625952 automatically chosen by the `~.Normalize` instance (defaults to
59635953 the respective min/max values of *C* in case of the default linear
59645954 scaling).
5955+ It is deprecated to use *vmin*/*vmax* when *norm* is given.
59655956
59665957 edgecolors : {'none', None, 'face', color, color sequence}, optional
59675958 The color of the edges. Defaults to 'none'. Possible values:
@@ -6081,8 +6072,7 @@ def pcolormesh(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
60816072collection .set_array (C )
60826073collection .set_cmap (cmap )
60836074collection .set_norm (norm )
6084- collection .set_clim (vmin ,vmax )
6085- collection .autoscale_None ()
6075+ collection ._scale_norm (norm ,vmin ,vmax )
60866076
60876077self .grid (False )
60886078
@@ -6196,6 +6186,7 @@ def pcolorfast(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
61966186 automatically chosen by the `~.Normalize` instance (defaults to
61976187 the respective min/max values of *C* in case of the default linear
61986188 scaling).
6189+ It is deprecated to use *vmin*/*vmax* when *norm* is given.
61996190
62006191 alpha : scalar, default: None
62016192 The alpha blending value, between 0 (transparent) and 1 (opaque).
@@ -6278,10 +6269,9 @@ def pcolorfast(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
62786269self .add_image (im )
62796270ret = im
62806271
6281- if vmin is not None or vmax is not None :
6282- ret .set_clim (vmin ,vmax )
6283- elif np .ndim (C )== 2 :# C.ndim == 3 is RGB(A) so doesn't need scaling.
6284- ret .autoscale_None ()
6272+ if np .ndim (C )== 2 :# C.ndim == 3 is RGB(A) so doesn't need scaling.
6273+ ret ._scale_norm (norm ,vmin ,vmax )
6274+
62856275if ret .get_clip_path ()is None :
62866276# image does not already have clipping set, clip to axes patch
62876277ret .set_clip_path (self .patch )