MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / to_rgb

Function to_rgb

lib/matplotlib/colors.py:546–552  ·  view source on GitHub ↗

Convert the :mpltype:`color` *c* to an RGB color tuple. If c has an alpha channel value specified, that is silently dropped.

(c)

Source from the content-addressed store, hash-verified

544
545
546def to_rgb(c):
547 """
548 Convert the :mpltype:`color` *c* to an RGB color tuple.
549
550 If c has an alpha channel value specified, that is silently dropped.
551 """
552 return to_rgba(c)[:3]
553
554
555def to_hex(c, keep_alpha=False):

Callers 1

test_bar_color_cycleFunction · 0.85

Calls 1

to_rgbaFunction · 0.85

Tested by 1

test_bar_color_cycleFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…