@@ -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,11 @@ 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_doc)s
4371
+
4372
+ %(norm_doc)s
4373
+
4374
+ %(vmin_vmax_doc)s
4373
4375
4374
4376
alpha : float, default: None
4375
4377
The alpha blending value, between 0 (transparent) and 1 (opaque).
@@ -4642,9 +4644,11 @@ def hexbin(self, x, y, C=None, gridsize=100, bins=None,
4642
4644
4643
4645
Other Parameters
4644
4646
----------------
4645
- cmap, norm, vmin, vmax
4646
- Data normalization and colormapping parameters. See `~.Axes.imshow`
4647
- for a detailed description.
4647
+ %(cmap_doc)s
4648
+
4649
+ %(norm_doc)s
4650
+
4651
+ %(vmin_vmax_doc)s
4648
4652
4649
4653
alpha : float between 0 and 1, optional
4650
4654
The alpha blending value, between 0 (transparent) and 1 (opaque).
@@ -5276,6 +5280,7 @@ def fill_betweenx(self, y, x1, x2=0, where=None,
5276
5280
# the documentation for *norm*, *vmax* and *vmin* together.
5277
5281
@_api .make_keyword_only ("3.5" , "aspect" )
5278
5282
@_preprocess_data ()
5283
+ @_docstring .interpd
5279
5284
def imshow (self , X , cmap = None , norm = None , aspect = None ,
5280
5285
interpolation = None , alpha = None ,
5281
5286
vmin = None , vmax = None , origin = None , extent = None , * ,
@@ -5314,34 +5319,11 @@ def imshow(self, X, cmap=None, norm=None, aspect=None,
5314
5319
5315
5320
Out-of-range RGB(A) values are clipped.
5316
5321
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.
5322
+ %(cmap_doc)s
5323
+
5324
+ %(norm_doc)s
5325
+
5326
+ %(vmin_vmax_doc)s
5345
5327
5346
5328
aspect : {'equal', 'auto'} or float, default: :rc:`image.aspect`
5347
5329
The aspect ratio of the Axes. This parameter is particularly
@@ -5664,7 +5646,8 @@ def pcolor(self, *args, shading=None, alpha=None, norm=None, cmap=None,
5664
5646
Parameters
5665
5647
----------
5666
5648
C : 2D array-like
5667
- The color-mapped values.
5649
+ The color-mapped values. Color-mapping is controlled by *cmap*,
5650
+ *norm*, *vmin*, and *vmax*.
5668
5651
5669
5652
X, Y : array-like, optional
5670
5653
The coordinates of the corners of quadrilaterals of a pcolormesh::
@@ -5711,9 +5694,11 @@ def pcolor(self, *args, shading=None, alpha=None, norm=None, cmap=None,
5711
5694
See :doc:`/gallery/images_contours_and_fields/pcolormesh_grids`
5712
5695
for more description.
5713
5696
5714
- cmap, norm, vmin, vmax
5715
- Data normalization and colormapping parameters for *C*. See
5716
- `~.Axes.imshow` for a detailed description.
5697
+ %(cmap_doc)s
5698
+
5699
+ %(norm_doc)s
5700
+
5701
+ %(vmin_vmax_doc)s
5717
5702
5718
5703
edgecolors : {'none', None, 'face', color, color sequence}, optional
5719
5704
The color of the edges. Defaults to 'none'. Possible values:
@@ -5894,7 +5879,8 @@ def pcolormesh(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
5894
5879
Parameters
5895
5880
----------
5896
5881
C : 2D array-like
5897
- The color-mapped values.
5882
+ The color-mapped values. Color-mapping is controlled by *cmap*,
5883
+ *norm*, *vmin*, and *vmax*.
5898
5884
5899
5885
X, Y : array-like, optional
5900
5886
The coordinates of the corners of quadrilaterals of a pcolormesh::
@@ -5925,9 +5911,11 @@ def pcolormesh(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
5925
5911
expanded as needed into the appropriate 2D arrays, making a
5926
5912
rectangular grid.
5927
5913
5928
- cmap, norm, vmin, vmax
5929
- Data normalization and colormapping parameters for *C*. See
5930
- `~.Axes.imshow` for a detailed description.
5914
+ %(cmap_doc)s
5915
+
5916
+ %(norm_doc)s
5917
+
5918
+ %(vmin_vmax_doc)s
5931
5919
5932
5920
edgecolors : {'none', None, 'face', color, color sequence}, optional
5933
5921
The color of the edges. Defaults to 'none'. Possible values:
@@ -6117,8 +6105,8 @@ def pcolorfast(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
6117
6105
C : array-like
6118
6106
The image data. Supported array shapes are:
6119
6107
6120
- - (M, N): an image with scalar data. The data is visualized
6121
- using a colormap .
6108
+ - (M, N): an image with scalar data. Color-mapping is controlled
6109
+ by *cmap*, *norm*, *vmin*, and *vmax* .
6122
6110
- (M, N, 3): an image with RGB values (0-1 float or 0-255 int).
6123
6111
- (M, N, 4): an image with RGBA values (0-1 float or 0-255 int),
6124
6112
i.e. including transparency.
@@ -6161,9 +6149,11 @@ def pcolorfast(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
6161
6149
6162
6150
These arguments can only be passed positionally.
6163
6151
6164
- cmap, norm, vmin, vmax
6165
- Data normalization and colormapping parameters for *C*. See
6166
- `~.Axes.imshow` for a detailed description.
6152
+ %(cmap_doc)s
6153
+
6154
+ %(norm_doc)s
6155
+
6156
+ %(vmin_vmax_doc)s
6167
6157
6168
6158
alpha : float, default: None
6169
6159
The alpha blending value, between 0 (transparent) and 1 (opaque).
@@ -6918,9 +6908,11 @@ def hist2d(self, x, y, bins=10, range=None, density=False, weights=None,
6918
6908
6919
6909
Other Parameters
6920
6910
----------------
6921
- cmap, norm, vmin, vmax
6922
- Data normalization and colormapping parameters. See `~.Axes.imshow`
6923
- for a detailed description.
6911
+ %(cmap_doc)s
6912
+
6913
+ %(norm_doc)s
6914
+
6915
+ %(vmin_vmax_doc)s
6924
6916
6925
6917
alpha : ``0 <= scalar <= 1`` or ``None``, optional
6926
6918
The alpha blending value.
0 commit comments