diff --git a/lib/matplotlib/axes/_axes.py b/lib/matplotlib/axes/_axes.py index 89081df90d9a..16451ae3efc2 100644 --- a/lib/matplotlib/axes/_axes.py +++ b/lib/matplotlib/axes/_axes.py @@ -430,10 +430,10 @@ def indicate_inset(self, bounds, inset_ax=None, *, transform=None, `ax.transAxes`, i.e. the units of *rect* are in Axes-relative coordinates. - facecolor : color, default: 'none' + facecolor : :mpltype:`color`, default: 'none' Facecolor of the rectangle. - edgecolor : color, default: '0.5' + edgecolor : :mpltype:`color`, default: '0.5' Color of the rectangle and color of the connecting lines. alpha : float, default: 0.5 @@ -1076,7 +1076,7 @@ def hlines(self, y, xmin, xmax, colors=None, linestyles='solid', Respective beginning and end of each line. If scalars are provided, all lines will have the same length. - colors : color or list of colors, default: :rc:`lines.color` + colors : :mpltype:`color` or list of colors, default: :rc:`lines.color` linestyles : {'solid', 'dashed', 'dashdot', 'dotted'}, default: 'solid' @@ -1167,7 +1167,7 @@ def vlines(self, x, ymin, ymax, colors=None, linestyles='solid', Respective beginning and end of each line. If scalars are provided, all lines will have the same length. - colors : color or list of colors, default: :rc:`lines.color` + colors : :mpltype:`color` or list of colors, default: :rc:`lines.color` linestyles : {'solid', 'dashed', 'dashdot', 'dotted'}, default: 'solid' @@ -1303,7 +1303,7 @@ def eventplot(self, positions, orientation='horizontal', lineoffsets=1, If *positions* is 2D, this can be a sequence with length matching the length of *positions*. - colors : color or list of colors, default: :rc:`lines.color` + colors : :mpltype:`color` or list of colors, default: :rc:`lines.color` The color(s) of the event lines. If *positions* is 2D, this can be a sequence with length matching @@ -2336,10 +2336,10 @@ def bar(self, x, height, width=0.8, bottom=None, *, align="center", Other Parameters ---------------- - color : color or list of color, optional + color : :mpltype:`color` or list of color, optional The colors of the bar faces. - edgecolor : color or list of color, optional + edgecolor : :mpltype:`color` or list of color, optional The colors of the bar edges. linewidth : float or array-like, optional @@ -2371,7 +2371,7 @@ def bar(self, x, height, width=0.8, bottom=None, *, align="center", See :doc:`/gallery/statistics/errorbar_features` for an example on the usage of *xerr* and *yerr*. - ecolor : color or list of color, default: 'black' + ecolor : :mpltype:`color` or list of color, default: 'black' The line color of the errorbars. capsize : float, default: :rc:`errorbar.capsize` @@ -2649,10 +2649,10 @@ def barh(self, y, width, height=0.8, left=None, *, align="center", Other Parameters ---------------- - color : color or list of color, optional + color : :mpltype:`color` or list of color, optional The colors of the bar faces. - edgecolor : color or list of color, optional + edgecolor : :mpltype:`color` or list of color, optional The colors of the bar edges. linewidth : float or array-like, optional @@ -2684,7 +2684,7 @@ def barh(self, y, width, height=0.8, left=None, *, align="center", See :doc:`/gallery/statistics/errorbar_features` for an example on the usage of *xerr* and *yerr*. - ecolor : color or list of color, default: 'black' + ecolor : :mpltype:`color` or list of color, default: 'black' The line color of the errorbars. capsize : float, default: :rc:`errorbar.capsize` @@ -3142,7 +3142,7 @@ def pie(self, x, explode=None, labels=None, colors=None, labels : list, default: None A sequence of strings providing the labels for each wedge - colors : color or array-like of color, default: None + colors : :mpltype:`color` or array-like of color, default: None A sequence of colors through which the pie chart will cycle. If *None*, will use the colors in the currently active cycle. @@ -3437,7 +3437,7 @@ def errorbar(self, x, y, yerr=None, xerr=None, Use 'none' (case-insensitive) to plot errorbars without any data markers. - ecolor : color, default: None + ecolor : :mpltype:`color`, default: None The color of the errorbar lines. If None, use the color of the line connecting the markers. @@ -4400,9 +4400,9 @@ def _parse_scatter_color_args(c, edgecolors, kwargs, xsize, Parameters ---------- - c : color or sequence or sequence of color or None + c : :mpltype:`color` or sequence or sequence of color or None See argument description of `.Axes.scatter`. - edgecolors : color or sequence of color or {'face', 'none'} or None + edgecolors : :mpltype:`color` or sequence of color or {'face', 'none'} or None See argument description of `.Axes.scatter`. kwargs : dict Additional kwargs. If these keys exist, we pop and process them: @@ -6718,7 +6718,7 @@ def hist(self, x, bins=None, range=None, density=False, weights=None, log : bool, default: False If ``True``, the histogram axis will be set to a log scale. - color : color or array-like of colors or None, default: None + color : :mpltype:`color` or array-like of colors or None, default: None Color or sequence of colors, one per dataset. Default (``None``) uses the standard line color sequence. diff --git a/lib/matplotlib/axes/_base.py b/lib/matplotlib/axes/_base.py index a0da0906eeb5..b460ad17262b 100644 --- a/lib/matplotlib/axes/_base.py +++ b/lib/matplotlib/axes/_base.py @@ -1499,7 +1499,7 @@ def set_facecolor(self, color): Parameters ---------- - color : color; see :ref:`colors_def` + color : :mpltype:`color` """ self._facecolor = color self.stale = True @@ -3371,17 +3371,17 @@ def tick_params(self, axis='both', **kwargs): Tick length in points. width : float Tick width in points. - color : color + color : :mpltype:`color` Tick color. pad : float Distance in points between tick and label. labelsize : float or str Tick label font size in points or as a string (e.g., 'large'). - labelcolor : color + labelcolor : :mpltype:`color` Tick label color. labelfontfamily : str Tick label font. - colors : color + colors : :mpltype:`color` Tick color and label color. zorder : float Tick and label zorder. @@ -3391,7 +3391,7 @@ def tick_params(self, axis='both', **kwargs): Whether to draw the respective tick labels. labelrotation : float Tick label rotation - grid_color : color + grid_color : :mpltype:`color` Gridline color. grid_alpha : float Transparency of gridlines: 0 (transparent) to 1 (opaque). diff --git a/lib/matplotlib/axes/_secondary_axes.py b/lib/matplotlib/axes/_secondary_axes.py index 7ee3c8b13c07..161c0a983f2f 100644 --- a/lib/matplotlib/axes/_secondary_axes.py +++ b/lib/matplotlib/axes/_secondary_axes.py @@ -240,7 +240,7 @@ def set_color(self, color): Parameters ---------- - color : color; see :ref:`colors_def` + color : :mpltype:`color` """ axis = self._axis_map[self._orientation] axis.set_tick_params(colors=color) diff --git a/lib/matplotlib/backend_bases.py b/lib/matplotlib/backend_bases.py index fd055fd7015d..60203ee97ba5 100644 --- a/lib/matplotlib/backend_bases.py +++ b/lib/matplotlib/backend_bases.py @@ -218,7 +218,7 @@ def draw_markers(self, gc, marker_path, marker_trans, path, The locations to draw the markers. trans : `~matplotlib.transforms.Transform` An affine transform applied to the path. - rgbFace : color, optional + rgbFace : :mpltype:`color`, optional """ for vertices, codes in path.iter_segments(trans, simplify=False): if len(vertices): @@ -956,7 +956,7 @@ def set_foreground(self, fg, isRGBA=False): Parameters ---------- - fg : color + fg : :mpltype:`color` isRGBA : bool If *fg* is known to be an ``(r, g, b, a)`` tuple, *isRGBA* can be set to True to improve performance. @@ -2111,11 +2111,11 @@ def print_figure( dpi : float, default: :rc:`savefig.dpi` The dots per inch to save the figure in. - facecolor : color or 'auto', default: :rc:`savefig.facecolor` + facecolor : :mpltype:`color` or 'auto', default: :rc:`savefig.facecolor` The facecolor of the figure. If 'auto', use the current figure facecolor. - edgecolor : color or 'auto', default: :rc:`savefig.edgecolor` + edgecolor : :mpltype:`color` or 'auto', default: :rc:`savefig.edgecolor` The edgecolor of the figure. If 'auto', use the current figure edgecolor. diff --git a/lib/matplotlib/collections.py b/lib/matplotlib/collections.py index cc20e5cebc1b..a99a85bcd6c2 100644 --- a/lib/matplotlib/collections.py +++ b/lib/matplotlib/collections.py @@ -96,11 +96,11 @@ def __init__(self, *, """ Parameters ---------- - edgecolors : color or list of colors, default: :rc:`patch.edgecolor` + edgecolors : :mpltype:`color` or list of colors, default: :rc:`patch.edgecolor` Edge color for each patch making up the collection. The special value 'face' can be passed to make the edgecolor match the facecolor. - facecolors : color or list of colors, default: :rc:`patch.facecolor` + facecolors : :mpltype:`color` or list of colors, default: :rc:`patch.facecolor` Face color for each patch making up the collection. linewidths : float or list of floats, default: :rc:`patch.linewidth` Line width for each patch making up the collection. @@ -745,7 +745,7 @@ def set_color(self, c): Parameters ---------- - c : color or list of RGBA tuples + c : :mpltype:`color` or list of RGBA tuples See Also -------- @@ -776,7 +776,7 @@ def set_facecolor(self, c): Parameters ---------- - c : color or list of colors + c : :mpltype:`color` or list of colors """ if isinstance(c, str) and c.lower() in ("none", "face"): c = c.lower() @@ -821,7 +821,7 @@ def set_edgecolor(self, c): Parameters ---------- - c : color or list of colors or 'face' + c : :mpltype:`color` or list of colors or 'face' The collection edgecolor(s). If a sequence, the patches cycle through it. If 'face', match the facecolor. """ @@ -1368,7 +1368,7 @@ def __init__(self, segments, # Can be None. can have a different number of segments. linewidths : float or list of float, default: :rc:`lines.linewidth` The width of each line in points. - colors : color or list of color, default: :rc:`lines.color` + colors : :mpltype:`color` or list of color, default: :rc:`lines.color` A sequence of RGBA tuples (e.g., arbitrary color strings, etc, not allowed). antialiaseds : bool or list of bool, default: :rc:`lines.antialiased` @@ -1376,7 +1376,7 @@ def __init__(self, segments, # Can be None. zorder : float, default: 2 zorder of the lines once drawn. - facecolors : color or list of color, default: 'none' + facecolors : :mpltype:`color` or list of color, default: 'none' When setting *facecolors*, each line is interpreted as a boundary for an area, implicitly closing the path from the last point to the first point. The enclosed area is filled with *facecolor*. @@ -1455,7 +1455,7 @@ def set_color(self, c): Parameters ---------- - c : color or list of colors + c : :mpltype:`color` or list of colors Single color (all lines have same color), or a sequence of RGBA tuples; if it is a sequence the lines will cycle through the sequence. @@ -1483,7 +1483,7 @@ def set_gapcolor(self, gapcolor): Parameters ---------- - gapcolor : color or list of colors or None + gapcolor : :mpltype:`color` or list of colors or None The color with which to fill the gaps. If None, the gaps are unfilled. """ @@ -1556,7 +1556,7 @@ def __init__(self, ``lineoffset - linelength/2`` to ``lineoffset + linelength/2``). linewidth : float or list thereof, default: :rc:`lines.linewidth` The line width of the event lines, in points. - color : color or list of colors, default: :rc:`lines.color` + color : :mpltype:`color` or list of colors, default: :rc:`lines.color` The color of the event lines. linestyle : str or tuple or list thereof, default: 'solid' Valid strings are ['solid', 'dashed', 'dashdot', 'dotted', diff --git a/lib/matplotlib/colorbar.py b/lib/matplotlib/colorbar.py index 092d4afc54ac..7ab136bc0224 100644 --- a/lib/matplotlib/colorbar.py +++ b/lib/matplotlib/colorbar.py @@ -730,7 +730,7 @@ def add_lines(self, *args, **kwargs): ---------- levels : array-like The positions of the lines. - colors : color or list of colors + colors : :mpltype:`color` or list of colors Either a single color applying to all lines or one color value for each line. linewidths : float or array-like diff --git a/lib/matplotlib/contour.py b/lib/matplotlib/contour.py index 7404151e7699..9a8bcafce09c 100644 --- a/lib/matplotlib/contour.py +++ b/lib/matplotlib/contour.py @@ -78,7 +78,7 @@ def clabel(self, levels=None, *, Size in points or relative size e.g., 'smaller', 'x-large'. See `.Text.set_size` for accepted string values. - colors : color or colors or None, default: None + colors : :mpltype:`color` or colors or None, default: None The label colors: - If *None*, the color of each label matches the color of diff --git a/lib/matplotlib/figure.py b/lib/matplotlib/figure.py index dd76c932b01e..7be07e941532 100644 --- a/lib/matplotlib/figure.py +++ b/lib/matplotlib/figure.py @@ -410,7 +410,7 @@ def set_edgecolor(self, color): Parameters ---------- - color : color; see :ref:`colors_def` + color : :mpltype:`color` """ self.patch.set_edgecolor(color) @@ -420,7 +420,7 @@ def set_facecolor(self, color): Parameters ---------- - color : color; see :ref:`colors_def` + color : :mpltype:`color` """ self.patch.set_facecolor(color) @@ -3279,11 +3279,11 @@ def savefig(self, fname, *, transparent=None, **kwargs): compressed layout engine; ignored if one of those engines is not in use. - facecolor : color or 'auto', default: :rc:`savefig.facecolor` + facecolor : :mpltype:`color` or 'auto', default: :rc:`savefig.facecolor` The facecolor of the figure. If 'auto', use the current figure facecolor. - edgecolor : color or 'auto', default: :rc:`savefig.edgecolor` + edgecolor : :mpltype:`color` or 'auto', default: :rc:`savefig.edgecolor` The edgecolor of the figure. If 'auto', use the current figure edgecolor. diff --git a/lib/matplotlib/lines.py b/lib/matplotlib/lines.py index c94be8c512ae..7d48e000c9de 100644 --- a/lib/matplotlib/lines.py +++ b/lib/matplotlib/lines.py @@ -1056,7 +1056,7 @@ def set_color(self, color): Parameters ---------- - color : color; see :ref:`colors_def` + color : :mpltype:`color` """ mcolors._check_color_like(color=color) self._color = color @@ -1111,7 +1111,7 @@ def set_gapcolor(self, gapcolor): Parameters ---------- - gapcolor : color or None + gapcolor : :mpltype:`color` or None The color with which to fill the gaps. If None, the gaps are unfilled. """ @@ -1214,7 +1214,7 @@ def set_markeredgecolor(self, ec): Parameters ---------- - ec : color + ec : :mpltype:`color` """ self._set_markercolor("markeredgecolor", True, ec) @@ -1224,7 +1224,7 @@ def set_markerfacecolor(self, fc): Parameters ---------- - fc : color + fc : :mpltype:`color` """ self._set_markercolor("markerfacecolor", True, fc) @@ -1234,7 +1234,7 @@ def set_markerfacecoloralt(self, fc): Parameters ---------- - fc : color + fc : :mpltype:`color` """ self._set_markercolor("markerfacecoloralt", False, fc) diff --git a/lib/matplotlib/patches.py b/lib/matplotlib/patches.py index d1537322ab76..aa010c8059f0 100644 --- a/lib/matplotlib/patches.py +++ b/lib/matplotlib/patches.py @@ -332,7 +332,7 @@ def set_edgecolor(self, color): Parameters ---------- - color : color or None; see :ref:`colors_def` + color : :mpltype:`color` or None """ self._original_edgecolor = color self._set_edgecolor(color) @@ -350,7 +350,7 @@ def set_facecolor(self, color): Parameters ---------- - color : color or None; see :ref:`colors_def` + color : :mpltype:`color` or None """ self._original_facecolor = color self._set_facecolor(color) @@ -361,7 +361,7 @@ def set_color(self, c): Parameters ---------- - c : color + c : :mpltype:`color` See Also -------- diff --git a/lib/matplotlib/patheffects.py b/lib/matplotlib/patheffects.py index 5bb4c8e2a501..110868717936 100644 --- a/lib/matplotlib/patheffects.py +++ b/lib/matplotlib/patheffects.py @@ -228,7 +228,7 @@ def __init__(self, offset=(2, -2), ---------- offset : (float, float), default: (2, -2) The (x, y) offset of the shadow in points. - shadow_rgbFace : color + shadow_rgbFace : :mpltype:`color` The shadow color. alpha : float, default: 0.3 The alpha transparency of the created shadow patch. @@ -295,7 +295,7 @@ def __init__(self, offset=(2, -2), ---------- offset : (float, float), default: (2, -2) The (x, y) offset to apply to the path, in points. - shadow_color : color, default: 'black' + shadow_color : :mpltype:`color`, default: 'black' The shadow color. A value of ``None`` takes the original artist's color with a scale factor of *rho*. diff --git a/lib/matplotlib/pyplot.py b/lib/matplotlib/pyplot.py index dc59bc809638..eacd4955df8b 100644 --- a/lib/matplotlib/pyplot.py +++ b/lib/matplotlib/pyplot.py @@ -816,10 +816,10 @@ def figure( dpi : float, default: :rc:`figure.dpi` The resolution of the figure in dots-per-inch. - facecolor : color, default: :rc:`figure.facecolor` + facecolor : :mpltype:`color`, default: :rc:`figure.facecolor` The background color. - edgecolor : color, default: :rc:`figure.edgecolor` + edgecolor : :mpltype:`color`, default: :rc:`figure.edgecolor` The border color. frameon : bool, default: True diff --git a/lib/matplotlib/quiver.py b/lib/matplotlib/quiver.py index 3089af5757dd..8c0d9eb15d8b 100644 --- a/lib/matplotlib/quiver.py +++ b/lib/matplotlib/quiver.py @@ -179,7 +179,7 @@ Minimum length as a multiple of shaft width; if an arrow length is less than this, plot a dot (hexagon) of this diameter instead. -color : color or color sequence, optional +color : :mpltype:`color` or color sequence, optional Explicit color(s) for the arrows. If *C* has been set, *color* has no effect. @@ -271,14 +271,14 @@ def __init__(self, Q, X, Y, U, label, (used for the locations of the vectors in the quiver plot itself); 'inches' is position in the figure in inches, with (0, 0) at the lower left corner. - color : color + color : :mpltype:`color` Overrides face and edge colors from *Q*. labelpos : {'N', 'S', 'E', 'W'} Position the label above, below, to the right, to the left of the arrow, respectively. labelsep : float, default: 0.1 Distance in inches between the arrow and the label. - labelcolor : color, default: :rc:`text.color` + labelcolor : :mpltype:`color`, default: :rc:`text.color` Label color. fontproperties : dict, optional A dictionary with keyword arguments accepted by the @@ -792,12 +792,12 @@ def _h_arrows(self, length): rotates about this point. This can also be a number, which shifts the start of the barb that many points away from grid point. -barbcolor : color or color sequence +barbcolor : :mpltype:`color` or color sequence The color of all parts of the barb except for the flags. This parameter is analogous to the *edgecolor* parameter for polygons, which can be used instead. However this parameter will override facecolor. -flagcolor : color or color sequence +flagcolor : :mpltype:`color` or color sequence The color of any flags on the barb. This parameter is analogous to the *facecolor* parameter for polygons, which can be used instead. However, this parameter will override facecolor. If this is not set (and *C* has diff --git a/lib/matplotlib/spines.py b/lib/matplotlib/spines.py index 9077ae478d71..39cb99c53d72 100644 --- a/lib/matplotlib/spines.py +++ b/lib/matplotlib/spines.py @@ -472,7 +472,7 @@ def set_color(self, c): Parameters ---------- - c : color + c : :mpltype:`color` Notes ----- diff --git a/lib/matplotlib/streamplot.py b/lib/matplotlib/streamplot.py index daae8fc5b35c..84f99732c709 100644 --- a/lib/matplotlib/streamplot.py +++ b/lib/matplotlib/streamplot.py @@ -42,7 +42,7 @@ def streamplot(axes, x, y, u, v, density=1, linewidth=None, color=None, The width of the streamlines. With a 2D array the line width can be varied across the grid. The array must have the same shape as *u* and *v*. - color : color or 2D array + color : :mpltype:`color` or 2D array The streamline color. If given an array, its values are converted to colors using *cmap* and *norm*. The array must have the same shape as *u* and *v*. diff --git a/lib/matplotlib/table.py b/lib/matplotlib/table.py index 345ce98ccf60..9fa467886dc5 100644 --- a/lib/matplotlib/table.py +++ b/lib/matplotlib/table.py @@ -70,9 +70,9 @@ def __init__(self, xy, width, height, *, The cell width. height : float The cell height. - edgecolor : color, default: 'k' + edgecolor : :mpltype:`color`, default: 'k' The color of the cell border. - facecolor : color, default: 'w' + facecolor : :mpltype:`color`, default: 'w' The cell facecolor. fill : bool, default: True Whether the cell background is filled. diff --git a/lib/matplotlib/text.py b/lib/matplotlib/text.py index 8734131dddc9..9a21d844d473 100644 --- a/lib/matplotlib/text.py +++ b/lib/matplotlib/text.py @@ -965,7 +965,7 @@ def set_backgroundcolor(self, color): Parameters ---------- - color : color; see :ref:`colors_def` + color : :mpltype:`color` See Also -------- @@ -985,7 +985,7 @@ def set_color(self, color): Parameters ---------- - color : color; see :ref:`colors_def` + color : :mpltype:`color` """ # "auto" is only supported by axisartist, but we can just let it error # out at draw time for simplicity. diff --git a/lib/matplotlib/widgets.py b/lib/matplotlib/widgets.py index 55355c34ed60..fc77f0bdfd52 100644 --- a/lib/matplotlib/widgets.py +++ b/lib/matplotlib/widgets.py @@ -193,7 +193,7 @@ def __init__(self, ax, label, image=None, directly forwarded to `~.axes.Axes.imshow`. color : :mpltype:`color` The color of the button when not activated. - hovercolor : color + hovercolor : :mpltype:`color` The color of the button when the mouse is over it. useblit : bool, default: True Use blitting for faster drawing if supported by the backend. @@ -406,11 +406,11 @@ def __init__(self, ax, label, valmin, valmax, *, valinit=0.5, valfmt=None, orientation : {'horizontal', 'vertical'}, default: 'horizontal' The orientation of the slider. - initcolor : color, default: 'r' + initcolor : :mpltype:`color`, default: 'r' The color of the line at the *valinit* position. Set to ``'none'`` for no line. - track_color : color, default: 'lightgrey' + track_color : :mpltype:`color`, default: 'lightgrey' The color of the background track. The track is accessible for further styling via the *track* attribute. @@ -678,7 +678,7 @@ def __init__( orientation : {'horizontal', 'vertical'}, default: 'horizontal' The orientation of the slider. - track_color : color, default: 'lightgrey' + track_color : :mpltype:`color`, default: 'lightgrey' The color of the background track. The track is accessible for further styling via the *track* attribute. @@ -1312,9 +1312,9 @@ class TextBox(AxesWidget): The parent Axes for the widget. label : `~matplotlib.text.Text` - color : color + color : :mpltype:`color` The color of the text box when not hovering. - hovercolor : color + hovercolor : :mpltype:`color` The color of the text box when hovering. """ @@ -1330,9 +1330,9 @@ def __init__(self, ax, label, initial='', *, Label for this text box. initial : str Initial value in the text box. - color : color + color : :mpltype:`color` The color of the box. - hovercolor : color + hovercolor : :mpltype:`color` The color of the box when the mouse is over it. label_pad : float The distance between the label and the right side of the textbox. @@ -1567,7 +1567,7 @@ class RadioButtons(AxesWidget): ---------- ax : `~matplotlib.axes.Axes` The parent Axes for the widget. - activecolor : color + activecolor : :mpltype:`color` The color of the selected button. labels : list of `.Text` The button labels. @@ -1592,7 +1592,7 @@ def __init__(self, ax, labels, active=0, activecolor=None, *, The button labels. active : int The index of the initially selected button. - activecolor : color + activecolor : :mpltype:`color` The color of the selected button. The default is ``'blue'`` if not specified here or in *radio_props*. useblit : bool, default: True diff --git a/lib/mpl_toolkits/axisartist/axisline_style.py b/lib/mpl_toolkits/axisartist/axisline_style.py index 5ae188021bb8..7f25b98082ef 100644 --- a/lib/mpl_toolkits/axisartist/axisline_style.py +++ b/lib/mpl_toolkits/axisartist/axisline_style.py @@ -171,7 +171,7 @@ def __init__(self, size=1, facecolor=None): ---------- size : float Size of the arrow as a fraction of the ticklabel size. - facecolor : color, default: :rc:`axes.edgecolor` + facecolor : :mpltype:`color`, default: :rc:`axes.edgecolor` Fill color. .. versionadded:: 3.7 diff --git a/lib/mpl_toolkits/mplot3d/axes3d.py b/lib/mpl_toolkits/mplot3d/axes3d.py index 1845c701323e..e90855cac9b6 100644 --- a/lib/mpl_toolkits/mplot3d/axes3d.py +++ b/lib/mpl_toolkits/mplot3d/axes3d.py @@ -1940,7 +1940,7 @@ def plot_surface(self, X, Y, Z, *, norm=None, vmin=None, 'classic' mode uses a default of ``rstride = cstride = 10`` instead of the new default of ``rcount = ccount = 50``. - color : color-like + color : :mpltype:`color` Color of the surface patches. cmap : Colormap, optional @@ -2613,7 +2613,7 @@ def scatter(self, xs, ys, zs=0, zdir='z', s=20, c=None, depthshade=True, The marker size in points**2. Either an array of the same length as *xs* and *ys* or a single value to make all markers the same size. - c : color, sequence, or sequence of colors, optional + c : :mpltype:`color`, sequence, or sequence of colors, optional The marker color. Possible values: - A single color format string. @@ -3265,7 +3265,7 @@ def errorbar(self, x, y, z, zerr=None, yerr=None, xerr=None, fmt='', Use 'none' (case-insensitive) to plot errorbars without any data markers. - ecolor : color, default: None + ecolor : :mpltype:`color`, default: None The color of the errorbar lines. If None, use the color of the line connecting the markers. diff --git a/lib/mpl_toolkits/mplot3d/axis3d.py b/lib/mpl_toolkits/mplot3d/axis3d.py index 7b738b705c2a..79b78657bdb9 100644 --- a/lib/mpl_toolkits/mplot3d/axis3d.py +++ b/lib/mpl_toolkits/mplot3d/axis3d.py @@ -250,7 +250,7 @@ def set_pane_color(self, color, alpha=None): Parameters ---------- - color : color + color : :mpltype:`color` Color for axis pane. alpha : float, optional Alpha value for axis pane. If None, base it on *color*.