@@ -3754,7 +3754,7 @@ def vlines(self, x, ymin, ymax, colors='k', linestyles='solid',
37543754 linestyles = linestyles , label = label )
37553755 self .add_collection (coll )
37563756 coll .update (kwargs )
3757-
3757+
37583758 if len (x ) > 0 :
37593759 minx = min ( x )
37603760 maxx = max ( x )
@@ -6955,16 +6955,18 @@ def pcolor(self, *args, **kwargs):
69556955 A :class:`matplotlib.colors.Colormap` instance. If *None*, use
69566956 rc settings.
69576957
6958- norm: [ *None* | Normalize ]
6958+ * norm* : [ *None* | Normalize ]
69596959 An :class:`matplotlib.colors.Normalize` instance is used
69606960 to scale luminance data to 0,1. If *None*, defaults to
69616961 :func:`normalize`.
69626962
69636963 *vmin*/*vmax*: [ *None* | scalar ]
69646964 *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.
69686970
69696971 *shading*: [ 'flat' | 'faceted' ]
69706972 If 'faceted', a black grid is drawn around each rectangle; if
@@ -7121,10 +7123,8 @@ def pcolor(self, *args, **kwargs):
71217123 if norm is not None : assert (isinstance (norm , mcolors .Normalize ))
71227124 collection .set_cmap (cmap )
71237125 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 ()
71287128 self .grid (False )
71297129
71307130 x = X .compressed ()
@@ -7167,9 +7167,11 @@ def pcolormesh(self, *args, **kwargs):
71677167
71687168 *vmin*/*vmax*: [ *None* | scalar ]
71697169 *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.
71737175
71747176 *shading*: [ 'flat' | 'gouraud' ]
71757177 'flat' indicates a solid color for each quad. When
@@ -7235,10 +7237,8 @@ def pcolormesh(self, *args, **kwargs):
72357237 if norm is not None : assert (isinstance (norm , mcolors .Normalize ))
72367238 collection .set_cmap (cmap )
72377239 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 ()
72427242
72437243 self .grid (False )
72447244
0 commit comments