@@ -3754,7 +3754,7 @@ def vlines(self, x, ymin, ymax, colors='k', linestyles='solid',
3754
3754
linestyles = linestyles , label = label )
3755
3755
self .add_collection (coll )
3756
3756
coll .update (kwargs )
3757
-
3757
+
3758
3758
if len (x ) > 0 :
3759
3759
minx = min ( x )
3760
3760
maxx = max ( x )
@@ -6955,16 +6955,18 @@ def pcolor(self, *args, **kwargs):
6955
6955
A :class:`matplotlib.colors.Colormap` instance. If *None*, use
6956
6956
rc settings.
6957
6957
6958
- norm: [ *None* | Normalize ]
6958
+ * norm* : [ *None* | Normalize ]
6959
6959
An :class:`matplotlib.colors.Normalize` instance is used
6960
6960
to scale luminance data to 0,1. If *None*, defaults to
6961
6961
:func:`normalize`.
6962
6962
6963
6963
*vmin*/*vmax*: [ *None* | scalar ]
6964
6964
*vmin* and *vmax* are used in conjunction with *norm* to
6965
- normalize luminance data. If either are *None*, the min
6966
- and max of the color array *C* is used. If you pass a
6967
- *norm* instance, *vmin* and *vmax* will be ignored.
6965
+ normalize luminance data. If either is *None*, it
6966
+ is autoscaled to the respective min or max
6967
+ of the color array *C*. If not *None*, *vmin* or
6968
+ *vmax* passed in here override any pre-existing values
6969
+ supplied in the *norm* instance.
6968
6970
6969
6971
*shading*: [ 'flat' | 'faceted' ]
6970
6972
If 'faceted', a black grid is drawn around each rectangle; if
@@ -7121,10 +7123,8 @@ def pcolor(self, *args, **kwargs):
7121
7123
if norm is not None : assert (isinstance (norm , mcolors .Normalize ))
7122
7124
collection .set_cmap (cmap )
7123
7125
collection .set_norm (norm )
7124
- if vmin is not None or vmax is not None :
7125
- collection .set_clim (vmin , vmax )
7126
- else :
7127
- collection .autoscale_None ()
7126
+ collection .set_clim (vmin , vmax )
7127
+ collection .autoscale_None ()
7128
7128
self .grid (False )
7129
7129
7130
7130
x = X .compressed ()
@@ -7167,9 +7167,11 @@ def pcolormesh(self, *args, **kwargs):
7167
7167
7168
7168
*vmin*/*vmax*: [ *None* | scalar ]
7169
7169
*vmin* and *vmax* are used in conjunction with *norm* to
7170
- normalize luminance data. If either are *None*, the min
7171
- and max of the color array *C* is used. If you pass a
7172
- *norm* instance, *vmin* and *vmax* will be ignored.
7170
+ normalize luminance data. If either is *None*, it
7171
+ is autoscaled to the respective min or max
7172
+ of the color array *C*. If not *None*, *vmin* or
7173
+ *vmax* passed in here override any pre-existing values
7174
+ supplied in the *norm* instance.
7173
7175
7174
7176
*shading*: [ 'flat' | 'gouraud' ]
7175
7177
'flat' indicates a solid color for each quad. When
@@ -7235,10 +7237,8 @@ def pcolormesh(self, *args, **kwargs):
7235
7237
if norm is not None : assert (isinstance (norm , mcolors .Normalize ))
7236
7238
collection .set_cmap (cmap )
7237
7239
collection .set_norm (norm )
7238
- if vmin is not None or vmax is not None :
7239
- collection .set_clim (vmin , vmax )
7240
- else :
7241
- collection .autoscale_None ()
7240
+ collection .set_clim (vmin , vmax )
7241
+ collection .autoscale_None ()
7242
7242
7243
7243
self .grid (False )
7244
7244
0 commit comments