You are reading an old version of the documentation (v3.1.1). For the latest version see https://matplotlib.org/stable/api/_as_gen/matplotlib.colors.to_rgb.html
Version 3.1.2
matplotlib
Fork me on GitHub

Table of Contents

matplotlib.colors.to_rgb

matplotlib.colors.to_rgb(c)[source]

Convert c to an RGB color, silently dropping the alpha channel.

Examples using matplotlib.colors.to_rgb