@@ -4320,6 +4320,7 @@ def invalid_shape_exception(csize, xsize):
4320
4320
"edgecolors" , "c" , "facecolor" ,
4321
4321
"facecolors" , "color" ],
4322
4322
label_namer = "y" )
4323
+ @_docstring .interpd
4323
4324
def scatter (self , x , y , s = None , c = None , marker = None , cmap = None , norm = None ,
4324
4325
vmin = None , vmax = None , alpha = None , linewidths = None , * ,
4325
4326
edgecolors = None , plotnonfinite = False , ** kwargs ):
@@ -4366,10 +4367,7 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
4366
4367
See :mod:`matplotlib.markers` for more information about marker
4367
4368
styles.
4368
4369
4369
- cmap, norm, vmin, vmax
4370
- Data normalization and colormapping parameters for *c*; only used
4371
- if *c* is an array of floats. See `~.Axes.imshow` for a detailed
4372
- description.
4370
+ %(cmap_norm_vmin_vmax_doc)s
4373
4371
4374
4372
alpha : float, default: None
4375
4373
The alpha blending value, between 0 (transparent) and 1 (opaque).
@@ -4642,9 +4640,7 @@ def hexbin(self, x, y, C=None, gridsize=100, bins=None,
4642
4640
4643
4641
Other Parameters
4644
4642
----------------
4645
- cmap, norm, vmin, vmax
4646
- Data normalization and colormapping parameters. See `~.Axes.imshow`
4647
- for a detailed description.
4643
+ %(cmap_norm_vmin_vmax_doc)s
4648
4644
4649
4645
alpha : float between 0 and 1, optional
4650
4646
The alpha blending value, between 0 (transparent) and 1 (opaque).
@@ -5276,6 +5272,7 @@ def fill_betweenx(self, y, x1, x2=0, where=None,
5276
5272
# the documentation for *norm*, *vmax* and *vmin* together.
5277
5273
@_api .make_keyword_only ("3.5" , "aspect" )
5278
5274
@_preprocess_data ()
5275
+ @_docstring .interpd
5279
5276
def imshow (self , X , cmap = None , norm = None , aspect = None ,
5280
5277
interpolation = None , alpha = None ,
5281
5278
vmin = None , vmax = None , origin = None , extent = None , * ,
@@ -5314,34 +5311,7 @@ def imshow(self, X, cmap=None, norm=None, aspect=None,
5314
5311
5315
5312
Out-of-range RGB(A) values are clipped.
5316
5313
5317
- cmap : str or `~matplotlib.colors.Colormap`, default: :rc:`image.cmap`
5318
- The Colormap instance or registered colormap name used to map
5319
- scalar data to colors. This parameter is ignored for RGB(A) data.
5320
-
5321
- norm : str or `~matplotlib.colors.Normalize`, optional
5322
- The normalization method used to scale scalar data to the [0, 1]
5323
- range before mapping to colors using *cmap*. By default, a linear
5324
- scaling mapping the lowest value to 0 and the highest to 1 is used.
5325
- This parameter is ignored for RGB(A) data.
5326
-
5327
- If given, this can be one of the following:
5328
-
5329
- - An instance of `.Normalize` or one of its subclasses
5330
- (see :doc:`/tutorials/colors/colormapnorms`).
5331
- - A scale name, i.e. one of "linear", "log", "symlog", "logit",
5332
- etc. For a full list of available scales call
5333
- `matplotlib.scales.get_scale_names()`.
5334
- In that case, a suitable `.Normalize` subclass is dynamically
5335
- generated and instantiated.
5336
-
5337
- vmin, vmax : float, optional
5338
- When using scalar data and no explicit *norm*, *vmin* and *vmax*
5339
- define the data range that the colormap covers. By default, the
5340
- colormap covers the complete value range of the supplied data. It
5341
- is an error to use *vmin*/*vmax* when a *norm* instance is given
5342
- (but using a `str` *norm* name together with *vmin*/*vmax* is
5343
- acceptable). When using RGB(A) data, parameters *vmin*/*vmax* are
5344
- ignored.
5314
+ %(cmap_norm_vmin_vmax_doc)s
5345
5315
5346
5316
aspect : {'equal', 'auto'} or float, default: :rc:`image.aspect`
5347
5317
The aspect ratio of the Axes. This parameter is particularly
@@ -5664,7 +5634,8 @@ def pcolor(self, *args, shading=None, alpha=None, norm=None, cmap=None,
5664
5634
Parameters
5665
5635
----------
5666
5636
C : 2D array-like
5667
- The color-mapped values.
5637
+ The color-mapped values. Color-mapping is controlled by *cmap*,
5638
+ *norm*, *vmin*, and *vmax*.
5668
5639
5669
5640
X, Y : array-like, optional
5670
5641
The coordinates of the corners of quadrilaterals of a pcolormesh::
@@ -5711,9 +5682,7 @@ def pcolor(self, *args, shading=None, alpha=None, norm=None, cmap=None,
5711
5682
See :doc:`/gallery/images_contours_and_fields/pcolormesh_grids`
5712
5683
for more description.
5713
5684
5714
- cmap, norm, vmin, vmax
5715
- Data normalization and colormapping parameters for *C*. See
5716
- `~.Axes.imshow` for a detailed description.
5685
+ %(cmap_norm_vmin_vmax_doc)s
5717
5686
5718
5687
edgecolors : {'none', None, 'face', color, color sequence}, optional
5719
5688
The color of the edges. Defaults to 'none'. Possible values:
@@ -5894,7 +5863,8 @@ def pcolormesh(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
5894
5863
Parameters
5895
5864
----------
5896
5865
C : 2D array-like
5897
- The color-mapped values.
5866
+ The color-mapped values. Color-mapping is controlled by *cmap*,
5867
+ *norm*, *vmin*, and *vmax*.
5898
5868
5899
5869
X, Y : array-like, optional
5900
5870
The coordinates of the corners of quadrilaterals of a pcolormesh::
@@ -5925,9 +5895,7 @@ def pcolormesh(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
5925
5895
expanded as needed into the appropriate 2D arrays, making a
5926
5896
rectangular grid.
5927
5897
5928
- cmap, norm, vmin, vmax
5929
- Data normalization and colormapping parameters for *C*. See
5930
- `~.Axes.imshow` for a detailed description.
5898
+ %(cmap_norm_vmin_vmax_doc)s
5931
5899
5932
5900
edgecolors : {'none', None, 'face', color, color sequence}, optional
5933
5901
The color of the edges. Defaults to 'none'. Possible values:
@@ -6117,8 +6085,8 @@ def pcolorfast(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
6117
6085
C : array-like
6118
6086
The image data. Supported array shapes are:
6119
6087
6120
- - (M, N): an image with scalar data. The data is visualized
6121
- using a colormap .
6088
+ - (M, N): an image with scalar data. Color-mapping is controlled
6089
+ by *cmap*, *norm*, *vmin*, and *vmax* .
6122
6090
- (M, N, 3): an image with RGB values (0-1 float or 0-255 int).
6123
6091
- (M, N, 4): an image with RGBA values (0-1 float or 0-255 int),
6124
6092
i.e. including transparency.
@@ -6161,9 +6129,7 @@ def pcolorfast(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
6161
6129
6162
6130
These arguments can only be passed positionally.
6163
6131
6164
- cmap, norm, vmin, vmax
6165
- Data normalization and colormapping parameters for *C*. See
6166
- `~.Axes.imshow` for a detailed description.
6132
+ %(cmap_norm_vmin_vmax_doc)s
6167
6133
6168
6134
alpha : float, default: None
6169
6135
The alpha blending value, between 0 (transparent) and 1 (opaque).
@@ -6918,9 +6884,7 @@ def hist2d(self, x, y, bins=10, range=None, density=False, weights=None,
6918
6884
6919
6885
Other Parameters
6920
6886
----------------
6921
- cmap, norm, vmin, vmax
6922
- Data normalization and colormapping parameters. See `~.Axes.imshow`
6923
- for a detailed description.
6887
+ %(cmap_norm_vmin_vmax_doc)s
6924
6888
6925
6889
alpha : ``0 <= scalar <= 1`` or ``None``, optional
6926
6890
The alpha blending value.
0 commit comments