@@ -4323,6 +4323,7 @@ def invalid_shape_exception(csize, xsize):
4323
4323
"edgecolors" , "c" , "facecolor" ,
4324
4324
"facecolors" , "color" ],
4325
4325
label_namer = "y" )
4326
+ @_docstring .interpd
4326
4327
def scatter (self , x , y , s = None , c = None , marker = None , cmap = None , norm = None ,
4327
4328
vmin = None , vmax = None , alpha = None , linewidths = None , * ,
4328
4329
edgecolors = None , plotnonfinite = False , ** kwargs ):
@@ -4369,10 +4370,11 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
4369
4370
See :mod:`matplotlib.markers` for more information about marker
4370
4371
styles.
4371
4372
4372
- cmap, norm, vmin, vmax
4373
- Data normalization and colormapping parameters for *c*; only used
4374
- if *c* is an array of floats. See `~.Axes.imshow` for a detailed
4375
- description.
4373
+ %(cmap_doc)s
4374
+
4375
+ %(norm_doc)s
4376
+
4377
+ %(vmin_vmax_doc)s
4376
4378
4377
4379
alpha : float, default: None
4378
4380
The alpha blending value, between 0 (transparent) and 1 (opaque).
@@ -4645,9 +4647,11 @@ def hexbin(self, x, y, C=None, gridsize=100, bins=None,
4645
4647
4646
4648
Other Parameters
4647
4649
----------------
4648
- cmap, norm, vmin, vmax
4649
- Data normalization and colormapping parameters. See `~.Axes.imshow`
4650
- for a detailed description.
4650
+ %(cmap_doc)s
4651
+
4652
+ %(norm_doc)s
4653
+
4654
+ %(vmin_vmax_doc)s
4651
4655
4652
4656
alpha : float between 0 and 1, optional
4653
4657
The alpha blending value, between 0 (transparent) and 1 (opaque).
@@ -5279,6 +5283,7 @@ def fill_betweenx(self, y, x1, x2=0, where=None,
5279
5283
# the documentation for *norm*, *vmax* and *vmin* together.
5280
5284
@_api .make_keyword_only ("3.5" , "aspect" )
5281
5285
@_preprocess_data ()
5286
+ @_docstring .interpd
5282
5287
def imshow (self , X , cmap = None , norm = None , aspect = None ,
5283
5288
interpolation = None , alpha = None ,
5284
5289
vmin = None , vmax = None , origin = None , extent = None , * ,
@@ -5317,34 +5322,11 @@ def imshow(self, X, cmap=None, norm=None, aspect=None,
5317
5322
5318
5323
Out-of-range RGB(A) values are clipped.
5319
5324
5320
- cmap : str or `~matplotlib.colors.Colormap`, default: :rc:`image.cmap`
5321
- The Colormap instance or registered colormap name used to map
5322
- scalar data to colors. This parameter is ignored for RGB(A) data.
5323
-
5324
- norm : str or `~matplotlib.colors.Normalize`, optional
5325
- The normalization method used to scale scalar data to the [0, 1]
5326
- range before mapping to colors using *cmap*. By default, a linear
5327
- scaling mapping the lowest value to 0 and the highest to 1 is used.
5328
- This parameter is ignored for RGB(A) data.
5329
-
5330
- If given, this can be one of the following:
5331
-
5332
- - An instance of `.Normalize` or one of its subclasses
5333
- (see :doc:`/tutorials/colors/colormapnorms`).
5334
- - A scale name, i.e. one of "linear", "log", "symlog", "logit",
5335
- etc. For a full list of available scales call
5336
- `matplotlib.scales.get_scale_names()`.
5337
- In that case, a suitable `.Normalize` subclass is dynamically
5338
- generated and instantiated.
5339
-
5340
- vmin, vmax : float, optional
5341
- When using scalar data and no explicit *norm*, *vmin* and *vmax*
5342
- define the data range that the colormap covers. By default, the
5343
- colormap covers the complete value range of the supplied data. It
5344
- is an error to use *vmin*/*vmax* when a *norm* instance is given
5345
- (but using a `str` *norm* name together with *vmin*/*vmax* is
5346
- acceptable). When using RGB(A) data, parameters *vmin*/*vmax* are
5347
- ignored.
5325
+ %(cmap_doc)s
5326
+
5327
+ %(norm_doc)s
5328
+
5329
+ %(vmin_vmax_doc)s
5348
5330
5349
5331
aspect : {'equal', 'auto'} or float, default: :rc:`image.aspect`
5350
5332
The aspect ratio of the Axes. This parameter is particularly
@@ -5667,7 +5649,8 @@ def pcolor(self, *args, shading=None, alpha=None, norm=None, cmap=None,
5667
5649
Parameters
5668
5650
----------
5669
5651
C : 2D array-like
5670
- The color-mapped values.
5652
+ The color-mapped values. Color-mapping is controlled by *cmap*,
5653
+ *norm*, *vmin*, and *vmax*.
5671
5654
5672
5655
X, Y : array-like, optional
5673
5656
The coordinates of the corners of quadrilaterals of a pcolormesh::
@@ -5714,9 +5697,11 @@ def pcolor(self, *args, shading=None, alpha=None, norm=None, cmap=None,
5714
5697
See :doc:`/gallery/images_contours_and_fields/pcolormesh_grids`
5715
5698
for more description.
5716
5699
5717
- cmap, norm, vmin, vmax
5718
- Data normalization and colormapping parameters for *C*. See
5719
- `~.Axes.imshow` for a detailed description.
5700
+ %(cmap_doc)s
5701
+
5702
+ %(norm_doc)s
5703
+
5704
+ %(vmin_vmax_doc)s
5720
5705
5721
5706
edgecolors : {'none', None, 'face', color, color sequence}, optional
5722
5707
The color of the edges. Defaults to 'none'. Possible values:
@@ -5897,7 +5882,8 @@ def pcolormesh(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
5897
5882
Parameters
5898
5883
----------
5899
5884
C : 2D array-like
5900
- The color-mapped values.
5885
+ The color-mapped values. Color-mapping is controlled by *cmap*,
5886
+ *norm*, *vmin*, and *vmax*.
5901
5887
5902
5888
X, Y : array-like, optional
5903
5889
The coordinates of the corners of quadrilaterals of a pcolormesh::
@@ -5928,9 +5914,11 @@ def pcolormesh(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
5928
5914
expanded as needed into the appropriate 2D arrays, making a
5929
5915
rectangular grid.
5930
5916
5931
- cmap, norm, vmin, vmax
5932
- Data normalization and colormapping parameters for *C*. See
5933
- `~.Axes.imshow` for a detailed description.
5917
+ %(cmap_doc)s
5918
+
5919
+ %(norm_doc)s
5920
+
5921
+ %(vmin_vmax_doc)s
5934
5922
5935
5923
edgecolors : {'none', None, 'face', color, color sequence}, optional
5936
5924
The color of the edges. Defaults to 'none'. Possible values:
@@ -6120,8 +6108,8 @@ def pcolorfast(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
6120
6108
C : array-like
6121
6109
The image data. Supported array shapes are:
6122
6110
6123
- - (M, N): an image with scalar data. The data is visualized
6124
- using a colormap .
6111
+ - (M, N): an image with scalar data. Color-mapping is controlled
6112
+ by *cmap*, *norm*, *vmin*, and *vmax* .
6125
6113
- (M, N, 3): an image with RGB values (0-1 float or 0-255 int).
6126
6114
- (M, N, 4): an image with RGBA values (0-1 float or 0-255 int),
6127
6115
i.e. including transparency.
@@ -6164,9 +6152,11 @@ def pcolorfast(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
6164
6152
6165
6153
These arguments can only be passed positionally.
6166
6154
6167
- cmap, norm, vmin, vmax
6168
- Data normalization and colormapping parameters for *C*. See
6169
- `~.Axes.imshow` for a detailed description.
6155
+ %(cmap_doc)s
6156
+
6157
+ %(norm_doc)s
6158
+
6159
+ %(vmin_vmax_doc)s
6170
6160
6171
6161
alpha : float, default: None
6172
6162
The alpha blending value, between 0 (transparent) and 1 (opaque).
@@ -6921,9 +6911,11 @@ def hist2d(self, x, y, bins=10, range=None, density=False, weights=None,
6921
6911
6922
6912
Other Parameters
6923
6913
----------------
6924
- cmap, norm, vmin, vmax
6925
- Data normalization and colormapping parameters. See `~.Axes.imshow`
6926
- for a detailed description.
6914
+ %(cmap_doc)s
6915
+
6916
+ %(norm_doc)s
6917
+
6918
+ %(vmin_vmax_doc)s
6927
6919
6928
6920
alpha : ``0 <= scalar <= 1`` or ``None``, optional
6929
6921
The alpha blending value.
0 commit comments