@@ -4314,6 +4314,7 @@ def invalid_shape_exception(csize, xsize):
4314
4314
"edgecolors" , "c" , "facecolor" ,
4315
4315
"facecolors" , "color" ],
4316
4316
label_namer = "y" )
4317
+ @_docstring .interpd
4317
4318
def scatter (self , x , y , s = None , c = None , marker = None , cmap = None , norm = None ,
4318
4319
vmin = None , vmax = None , alpha = None , linewidths = None , * ,
4319
4320
edgecolors = None , plotnonfinite = False , ** kwargs ):
@@ -4360,10 +4361,7 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
4360
4361
See :mod:`matplotlib.markers` for more information about marker
4361
4362
styles.
4362
4363
4363
- cmap, norm, vmin, vmax
4364
- Data normalization and colormapping parameters for *c*; only used
4365
- if *c* is an array of floats. See `~.Axes.imshow` for a detailed
4366
- description.
4364
+ %(cmap_norm_vmin_vmax_doc)s
4367
4365
4368
4366
alpha : float, default: None
4369
4367
The alpha blending value, between 0 (transparent) and 1 (opaque).
@@ -4636,9 +4634,7 @@ def hexbin(self, x, y, C=None, gridsize=100, bins=None,
4636
4634
4637
4635
Other Parameters
4638
4636
----------------
4639
- cmap, norm, vmin, vmax
4640
- Data normalization and colormapping parameters. See `~.Axes.imshow`
4641
- for a detailed description.
4637
+ %(cmap_norm_vmin_vmax_doc)s
4642
4638
4643
4639
alpha : float between 0 and 1, optional
4644
4640
The alpha blending value, between 0 (transparent) and 1 (opaque).
@@ -5270,6 +5266,7 @@ def fill_betweenx(self, y, x1, x2=0, where=None,
5270
5266
# the documentation for *norm*, *vmax* and *vmin* together.
5271
5267
@_api .make_keyword_only ("3.5" , "aspect" )
5272
5268
@_preprocess_data ()
5269
+ @_docstring .interpd
5273
5270
def imshow (self , X , cmap = None , norm = None , aspect = None ,
5274
5271
interpolation = None , alpha = None ,
5275
5272
vmin = None , vmax = None , origin = None , extent = None , * ,
@@ -5308,34 +5305,7 @@ def imshow(self, X, cmap=None, norm=None, aspect=None,
5308
5305
5309
5306
Out-of-range RGB(A) values are clipped.
5310
5307
5311
- cmap : str or `~matplotlib.colors.Colormap`, default: :rc:`image.cmap`
5312
- The Colormap instance or registered colormap name used to map
5313
- scalar data to colors. This parameter is ignored for RGB(A) data.
5314
-
5315
- norm : str or `~matplotlib.colors.Normalize`, optional
5316
- The normalization method used to scale scalar data to the [0, 1]
5317
- range before mapping to colors using *cmap*. By default, a linear
5318
- scaling mapping the lowest value to 0 and the highest to 1 is used.
5319
- This parameter is ignored for RGB(A) data.
5320
-
5321
- If given, this can be one of the following:
5322
-
5323
- - An instance of `.Normalize` or one of its subclasses
5324
- (see :doc:`/tutorials/colors/colormapnorms`).
5325
- - A scale name, i.e. one of "linear", "log", "symlog", "logit",
5326
- etc. For a full list of available scales call
5327
- `matplotlib.scales.get_scale_names()`.
5328
- In that case, a suitable `.Normalize` subclass is dynamically
5329
- generated and instantiated.
5330
-
5331
- vmin, vmax : float, optional
5332
- When using scalar data and no explicit *norm*, *vmin* and *vmax*
5333
- define the data range that the colormap covers. By default, the
5334
- colormap covers the complete value range of the supplied data. It
5335
- is an error to use *vmin*/*vmax* when a *norm* instance is given
5336
- (but using a `str` *norm* name together with *vmin*/*vmax* is
5337
- acceptable). When using RGB(A) data, parameters *vmin*/*vmax* are
5338
- ignored.
5308
+ %(cmap_norm_vmin_vmax_doc)s
5339
5309
5340
5310
aspect : {'equal', 'auto'} or float, default: :rc:`image.aspect`
5341
5311
The aspect ratio of the Axes. This parameter is particularly
@@ -5657,7 +5627,8 @@ def pcolor(self, *args, shading=None, alpha=None, norm=None, cmap=None,
5657
5627
Parameters
5658
5628
----------
5659
5629
C : 2D array-like
5660
- The color-mapped values.
5630
+ The color-mapped values. Color-mapping is controlled by *cmap*,
5631
+ *norm*, *vmin*, and *vmax*.
5661
5632
5662
5633
X, Y : array-like, optional
5663
5634
The coordinates of the corners of quadrilaterals of a pcolormesh::
@@ -5704,9 +5675,7 @@ def pcolor(self, *args, shading=None, alpha=None, norm=None, cmap=None,
5704
5675
See :doc:`/gallery/images_contours_and_fields/pcolormesh_grids`
5705
5676
for more description.
5706
5677
5707
- cmap, norm, vmin, vmax
5708
- Data normalization and colormapping parameters for *C*. See
5709
- `~.Axes.imshow` for a detailed description.
5678
+ %(cmap_norm_vmin_vmax_doc)s
5710
5679
5711
5680
edgecolors : {'none', None, 'face', color, color sequence}, optional
5712
5681
The color of the edges. Defaults to 'none'. Possible values:
@@ -5887,7 +5856,8 @@ def pcolormesh(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
5887
5856
Parameters
5888
5857
----------
5889
5858
C : 2D array-like
5890
- The color-mapped values.
5859
+ The color-mapped values. Color-mapping is controlled by *cmap*,
5860
+ *norm*, *vmin*, and *vmax*.
5891
5861
5892
5862
X, Y : array-like, optional
5893
5863
The coordinates of the corners of quadrilaterals of a pcolormesh::
@@ -5918,9 +5888,7 @@ def pcolormesh(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
5918
5888
expanded as needed into the appropriate 2D arrays, making a
5919
5889
rectangular grid.
5920
5890
5921
- cmap, norm, vmin, vmax
5922
- Data normalization and colormapping parameters for *C*. See
5923
- `~.Axes.imshow` for a detailed description.
5891
+ %(cmap_norm_vmin_vmax_doc)s
5924
5892
5925
5893
edgecolors : {'none', None, 'face', color, color sequence}, optional
5926
5894
The color of the edges. Defaults to 'none'. Possible values:
@@ -6110,8 +6078,8 @@ def pcolorfast(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
6110
6078
C : array-like
6111
6079
The image data. Supported array shapes are:
6112
6080
6113
- - (M, N): an image with scalar data. The data is visualized
6114
- using a colormap .
6081
+ - (M, N): an image with scalar data. Color-mapping is controlled
6082
+ by *cmap*, *norm*, *vmin*, and *vmax* .
6115
6083
- (M, N, 3): an image with RGB values (0-1 float or 0-255 int).
6116
6084
- (M, N, 4): an image with RGBA values (0-1 float or 0-255 int),
6117
6085
i.e. including transparency.
@@ -6154,9 +6122,7 @@ def pcolorfast(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
6154
6122
6155
6123
These arguments can only be passed positionally.
6156
6124
6157
- cmap, norm, vmin, vmax
6158
- Data normalization and colormapping parameters for *C*. See
6159
- `~.Axes.imshow` for a detailed description.
6125
+ %(cmap_norm_vmin_vmax_doc)s
6160
6126
6161
6127
alpha : float, default: None
6162
6128
The alpha blending value, between 0 (transparent) and 1 (opaque).
@@ -6911,9 +6877,7 @@ def hist2d(self, x, y, bins=10, range=None, density=False, weights=None,
6911
6877
6912
6878
Other Parameters
6913
6879
----------------
6914
- cmap, norm, vmin, vmax
6915
- Data normalization and colormapping parameters. See `~.Axes.imshow`
6916
- for a detailed description.
6880
+ %(cmap_norm_vmin_vmax_doc)s
6917
6881
6918
6882
alpha : ``0 <= scalar <= 1`` or ``None``, optional
6919
6883
The alpha blending value.
0 commit comments