File: named_colors.rst

package info (click to toggle)
python-pyvista 0.46.4-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 176,968 kB
  • sloc: python: 94,346; sh: 216; makefile: 70
file content (107 lines) | stat: -rw-r--r-- 2,818 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
.. _named_colors:

Named Colors
============

Named colors supported by :class:`~pyvista.Color` and plotting-related classes such as
:class:`~pyvista.Plotter`.

The colors on this page come from various sources, and include:

- :bdg-primary:`CSS` - all standard `named web colors <https://www.w3.org/TR/css-color-4/#named-colors>`_
- :bdg-secondary:`VTK` - colors from `vtkNamedColors <https://htmlpreview.github.io/?https://github.com/Kitware/vtk-examples/blob/gh-pages/VTKNamedColorPatches.html#VTKColorNames>`_
- :bdg-success:`TAB` - palette of 10 colors used by ``Tableau``
- :bdg-danger:`PV` - default colors used by ``ParaView``

See also ``matplotlib``'s `list of named colors <https://matplotlib.org/stable/gallery/color/named_colors.html>`_
for additional information about the ``CSS`` and ``TAB`` colors.

.. note::

    Many colors have multiple names which refer to the same color (``'gray'`` and ``'grey'``,
    for example). These alternate names are listed where applicable. Underscores, spaces,
    and hyphens between words are also acceptable inputs. See :attr:`Color.name <pyvista.Color.name>`
    for examples.

.. warning::

    Some color names are not internally consistent. For example,

    - ``'darkgray'`` is lighter than ``'gray'``,
    - ``'lightpink'`` is darker than ``'pink'``, and
    - ``'cadmiumyellow'`` is classified as an ``Orange`` color.

.. seealso::

    :ref:`named_colormaps`
        Similar reference for named colormaps.

Sorted by Name
--------------

.. dropdown:: All Colors

    .. include:: /api/utilities/color_table/color_table.rst

Sorted by Color
---------------

.. dropdown:: Blacks
    :open:

    .. include:: /api/utilities/color_table/color_table_BLACK.rst

.. dropdown:: Grays
    :open:

    .. include:: /api/utilities/color_table/color_table_GRAY.rst

.. dropdown:: Whites
    :open:

    .. include:: /api/utilities/color_table/color_table_WHITE.rst

.. dropdown:: Reds
    :open:

    .. include:: /api/utilities/color_table/color_table_RED.rst

.. dropdown:: Oranges
    :open:

    .. include:: /api/utilities/color_table/color_table_ORANGE.rst

.. dropdown:: Browns
    :open:

    .. include:: /api/utilities/color_table/color_table_BROWN.rst

.. dropdown:: Yellows
    :open:

    .. include:: /api/utilities/color_table/color_table_YELLOW.rst

.. dropdown:: Greens
    :open:

    .. include:: /api/utilities/color_table/color_table_GREEN.rst

.. dropdown:: Cyans
    :open:

    .. include:: /api/utilities/color_table/color_table_CYAN.rst

.. dropdown:: Blues
    :open:

    .. include:: /api/utilities/color_table/color_table_BLUE.rst

.. dropdown:: Violets
    :open:

    .. include:: /api/utilities/color_table/color_table_VIOLET.rst

.. dropdown:: Magentas
    :open:

    .. include:: /api/utilities/color_table/color_table_MAGENTA.rst