@@ -4323,6 +4323,7 @@ def invalid_shape_exception(csize, xsize):
43234323 "edgecolors" , "c" , "facecolor" ,
43244324 "facecolors" , "color" ],
43254325 label_namer = "y" )
4326+ @_docstring .interpd
43264327 def scatter (self , x , y , s = None , c = None , marker = None , cmap = None , norm = None ,
43274328 vmin = None , vmax = None , alpha = None , linewidths = None , * ,
43284329 edgecolors = None , plotnonfinite = False , ** kwargs ):
@@ -4369,10 +4370,11 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
43694370 See :mod:`matplotlib.markers` for more information about marker
43704371 styles.
43714372
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
43764378
43774379 alpha : float, default: None
43784380 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,
46454647
46464648 Other Parameters
46474649 ----------------
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
46514655
46524656 alpha : float between 0 and 1, optional
46534657 The alpha blending value, between 0 (transparent) and 1 (opaque).
@@ -5279,6 +5283,7 @@ def fill_betweenx(self, y, x1, x2=0, where=None,
52795283 # the documentation for *norm*, *vmax* and *vmin* together.
52805284 @_api .make_keyword_only ("3.5" , "aspect" )
52815285 @_preprocess_data ()
5286+ @_docstring .interpd
52825287 def imshow (self , X , cmap = None , norm = None , aspect = None ,
52835288 interpolation = None , alpha = None ,
52845289 vmin = None , vmax = None , origin = None , extent = None , * ,
@@ -5317,34 +5322,11 @@ def imshow(self, X, cmap=None, norm=None, aspect=None,
53175322
53185323 Out-of-range RGB(A) values are clipped.
53195324
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
53485330
53495331 aspect : {'equal', 'auto'} or float, default: :rc:`image.aspect`
53505332 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,
56675649 Parameters
56685650 ----------
56695651 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*.
56715654
56725655 X, Y : array-like, optional
56735656 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,
57145697 See :doc:`/gallery/images_contours_and_fields/pcolormesh_grids`
57155698 for more description.
57165699
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
57205705
57215706 edgecolors : {'none', None, 'face', color, color sequence}, optional
57225707 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,
58975882 Parameters
58985883 ----------
58995884 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*.
59015887
59025888 X, Y : array-like, optional
59035889 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,
59285914 expanded as needed into the appropriate 2D arrays, making a
59295915 rectangular grid.
59305916
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
59345922
59355923 edgecolors : {'none', None, 'face', color, color sequence}, optional
59365924 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,
61206108 C : array-like
61216109 The image data. Supported array shapes are:
61226110
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* .
61256113 - (M, N, 3): an image with RGB values (0-1 float or 0-255 int).
61266114 - (M, N, 4): an image with RGBA values (0-1 float or 0-255 int),
61276115 i.e. including transparency.
@@ -6164,9 +6152,11 @@ def pcolorfast(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
61646152
61656153 These arguments can only be passed positionally.
61666154
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
61706160
61716161 alpha : float, default: None
61726162 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,
69216911
69226912 Other Parameters
69236913 ----------------
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
69276919
69286920 alpha : ``0 <= scalar <= 1`` or ``None``, optional
69296921 The alpha blending value.
0 commit comments