matplotlib.colors.to_hex#

matplotlib.colors.to_hex(c, keep_alpha=False)[Quelle]#

Konvertiert c in eine Hex-Farbe.

Parameter:
cFarbe oder numpy.ma.masked
keep_alphabool, Standard: False

Wenn False, wird das Format #rrggbb verwendet, andernfalls #rrggbbaa.

Gibt zurück:
str

#rrggbb oder #rrggbbaa Hex-Farbstring