I can change the face color of a plot using the original colors, R, G, B, etc. However, I am working on a project and I will need to prepare a presentation which is visually pleasing and I would like to use a wide range of colors, like the colors are listed, I am using this code (I Color of field below):
fig = plt.figure (num = none, figsize = (30, 50)) ax1 = Fig.add_subplot (2,1,1) ax1. Plot (x, y, 'k-') ax1.fill_between (x, minute (y, y, face color = '# 8B0000')
However, when I use the hex color U Yoga therefore face does nothing to color, but when I am using the 'R', 'B', etc., it works. Is there any way to use hex color code for fill_between?
face color
matplotlib color accepts ARG or RGBA Tuples sequence If you want to use hex colors, you must first correct the hex value in the format. Take a look at the matplotlib.colors
module I'm not fully familiar with the library, but it's probably used.
No comments:
Post a Comment