matplotlib.colors.to_hex
-
matplotlib.colors.
to_hex
( c, keep_alpha=False ) [source] -
Convert c to a hex color.
Uses the
#rrggbb
format if keep_alpha is False (the default),#rrggbbaa
otherwise.
Examples using matplotlib.colors.to_hex
© 2012–2021 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.4.3/api/_as_gen/matplotlib.colors.to_hex.html