matplotlib.colors
matplotlib.colors.to_hex
matplotlib.colors.
to_hex
Convert c to a hex color.
Uses the #rrggbb format if keep_alpha is False (the default), #rrggbbaa otherwise.
#rrggbb
#rrggbbaa