Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Doc]: Document color in a consistent way, including link #24859

Closed
@oscargus

Description

@oscargus

Documentation Link

No response

Problem

Matplotlib has a rather flexible color concept, seehttps://matplotlib.org/stable/tutorials/colors/colors.html

In the documentation, the type of color arguments is often, but not always, listed as "color", although there are limited hints what this actually means.

Suggested improvement

Link the typecolor to the page above (is there a better one?). Update other types (likestr) to becolor.

:doc:`color </tutorials/colors/colors>`

These are the ones I found through a simple grep.

matplotlib/axes/_axes.py:        facecolor : color, default: 'none'matplotlib/axes/_axes.py:        edgecolor : color, default: '0.5'matplotlib/axes/_axes.py:        color : color or list of color, optionalmatplotlib/axes/_axes.py:        edgecolor : color or list of color, optionalmatplotlib/axes/_axes.py:        ecolor : color or list of color, default: 'black'matplotlib/axes/_axes.py:        color : color or list of color, optionalmatplotlib/axes/_axes.py:        edgecolor : color or list of color, optionalmatplotlib/axes/_axes.py:        ecolor : color or list of color, default: 'black'matplotlib/axes/_axes.py:        ecolor : color, default: Nonematplotlib/axes/_axes.py:        pcolor : An alternative implementation with slightly differentmatplotlib/axes/_axes.py:        color : color or array-like of colors or None, default: Nonematplotlib/axes/_base.py:        color : colormatplotlib/axes/_base.py:        color : colormatplotlib/axes/_base.py:        labelcolor : colormatplotlib/axes/_base.py:        grid_color : colormatplotlib/axes/_secondary_axes.py:        color : colormatplotlib/backend_bases.py:        facecolor : color or 'auto', default: :rc:`savefig.facecolor`matplotlib/backend_bases.py:        edgecolor : color or 'auto', default: :rc:`savefig.edgecolor`matplotlib/collections.py:        color : color or list of colors, default: :rc:`lines.color`matplotlib/figure.py:        color : colormatplotlib/figure.py:        color : colormatplotlib/figure.py:        facecolor : default: :rc:`figure.facecolor`matplotlib/figure.py:        edgecolor : default: :rc:`figure.edgecolor`matplotlib/figure.py:        facecolor : default: :rc:`figure.facecolor`matplotlib/figure.py:        edgecolor : default: :rc:`figure.edgecolor`matplotlib/figure.py:        facecolor : color or 'auto', default: :rc:`savefig.facecolor`matplotlib/figure.py:        edgecolor : color or 'auto', default: :rc:`savefig.edgecolor`matplotlib/legend.py:labelcolor : str or list, default: :rc:`legend.labelcolor`matplotlib/legend.py:facecolor : "inherit" or color, default: :rc:`legend.facecolor`matplotlib/legend.py:edgecolor : "inherit" or color, default: :rc:`legend.edgecolor`matplotlib/lines.py:        color : colormatplotlib/lines.py:        gapcolor : color or Nonematplotlib/mathtext.py:    color : str, optionalmatplotlib/patches.py:        color : color or Nonematplotlib/patches.py:        color : color or Nonematplotlib/patheffects.py:        shadow_color : color, default: 'black'matplotlib/pyplot.py:    facecolor : color, default: :rc:`figure.facecolor`matplotlib/pyplot.py:    edgecolor : color, default: :rc:`figure.edgecolor`matplotlib/quiver.py:color : color or color sequence, optionalmatplotlib/quiver.py:        color : colormatplotlib/quiver.py:        labelcolor : color, default: :rc:`text.color`matplotlib/quiver.py:barbcolor : color or color sequencematplotlib/quiver.py:flagcolor : color or color sequencematplotlib/streamplot.py:    color : color or 2D arraymatplotlib/table.py:        edgecolor : colormatplotlib/table.py:        facecolor : colormatplotlib/text.py:        color : colormatplotlib/text.py:        color : colormatplotlib/widgets.py:        color : colormatplotlib/widgets.py:        hovercolor : colormatplotlib/widgets.py:        initcolor : color, default: 'r'matplotlib/widgets.py:        track_color : color, default: 'lightgrey'matplotlib/widgets.py:        track_color : color, default: 'lightgrey'matplotlib/widgets.py:    color : colormatplotlib/widgets.py:    hovercolor : colormatplotlib/widgets.py:        color : colormatplotlib/widgets.py:        hovercolor : colormatplotlib/widgets.py:    activecolor : colormatplotlib/widgets.py:        activecolor : colormpl_toolkits/axes_grid1/anchored_artists.py:        color : str, default: 'black'mpl_toolkits/axes_grid1/anchored_artists.py:        color : str, default: 'white'mpl_toolkits/mplot3d/axes3d.py:        color : color-likempl_toolkits/mplot3d/axes3d.py:        color : sequence of colors, optionalmpl_toolkits/mplot3d/axes3d.py:        ecolor : color, default: Nonempl_toolkits/mplot3d/axis3d.py:        color : color
matplotlib/axes/_axes.py:        colors : list of colors, default: :rc:`lines.color`matplotlib/axes/_axes.py:        colors : list of colors, default: :rc:`lines.color`matplotlib/axes/_axes.py:        colors : color or list of colors, default: :rc:`lines.color`matplotlib/axes/_axes.py:        colors : array-like, default: Nonematplotlib/axes/_axes.py:        edgecolors : color or sequence of color or {'face', 'none'} or Nonematplotlib/axes/_axes.py:        colors : array(N, 4) or Nonematplotlib/axes/_axes.py:        edgecolors : {'face', 'none', *None*} or color or sequence of color, \matplotlib/axes/_axes.py:        edgecolors : {'face', 'none', *None*} or color, default: 'face'matplotlib/axes/_axes.py:        edgecolors : {'none', None, 'face', color, color sequence}, optionalmatplotlib/axes/_axes.py:        edgecolors : {'none', None, 'face', color, color sequence}, optionalmatplotlib/axes/_base.py:        colors : colormatplotlib/backend_bases.py:        colors : (3, 4) array-likematplotlib/backend_bases.py:        colors : (N, 3, 4) array-likematplotlib/backends/backend_pdf.py:        colors : np.ndarraymatplotlib/collections.py:        edgecolors : color or list of colors, default: :rc:`patch.edgecolor`matplotlib/collections.py:        facecolors : color or list of colors, default: :rc:`patch.facecolor`matplotlib/collections.py:        colors : color or list of color, default: :rc:`lines.color`matplotlib/collections.py:        facecolors : color or list of color, default: 'none'matplotlib/colorbar.py:        colors : color or list of colorsmatplotlib/colors.py:        colors : array-like of colors or array-like of (value, color)matplotlib/colors.py:    colors : list, arraymatplotlib/colors.py:    colors : sequence of colorsmatplotlib/contour.py:        colors : color or colors or None, default: Nonematplotlib/contour.py:colors : color string or sequence of colors, optionalmatplotlib/stackplot.py:    colors : list of color, optionalmatplotlib/tri/_tricontour.py:colors : color string or sequence of colors, optionalmatplotlib/tri/_tripcolor.py:    facecolors : array-like, optionalmpl_toolkits/mplot3d/axes3d.py:        facecolors : array-like of colors.mpl_toolkits/mplot3d/axes3d.py:        facecolors, edgecolors : array-like, optional
matplotlib/axes/_axes.py:        c : color or sequence or sequence of color or Nonematplotlib/backend_bases.py:        fg : colormatplotlib/collections.py:        c : color or list of RGBA tuplesmatplotlib/collections.py:        c : color or list of colorsmatplotlib/collections.py:        c : color or list of colors or 'face'matplotlib/collections.py:        c : color or list of colorsmatplotlib/lines.py:        ec : colormatplotlib/lines.py:        fc : colormatplotlib/lines.py:        fc : colormatplotlib/patches.py:        c : colormatplotlib/patheffects.py:        shadow_rgbFace : colormatplotlib/spines.py:        c : colormpl_toolkits/mplot3d/axes3d.py:        c : color, sequence, or sequence of colors, optional

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp