MATLAB plot color

matlab default color matching

Reference link https://zhuanlan.zhihu.com/p/492683309
The default color matching of matlab is also very beautiful, and its RGB triplet and hexadecimal code can be found in the help of the plot function .
insert image description here

RGB triplet hexadecimal color code
[0 0.4470 0.7410] #0072BD
[0.8500 0.3250 0.0980] #D95319
[0.9290 0.6940 0.1250] #EDB120
[0.4940 0.1840 0.5560] #7E2F8E
[0.4660 0.6740 0.1880] #77AC30
[0.3010 0.7450 0.9330] #4DBEEE
[0.6350 0.0780 0.1840] #A2142F

The specific usage is

x = linspace(0,10*pi,300);
y0 = cos(x);
figure
plot(x,y0,'Color','#A2142F')

matlab other reference color matching

Reference link https://blog.csdn.net/qq_44571245/article/details/124168187
insert image description here

matplotlib default color matching

The default color matching of matplotlib is slightly different from that of matlab, but it is also more beautiful.
Refer to the link https://blog.csdn.net/gsgbgxp/article/details/119349882

#1f77b4:
insert image description here
#ff7f0e:
insert image description here
#2ca02c:
insert image description here
#d62728:
insert image description here
#9467bd:
insert image description here
#8c564b:
insert image description here
#e377c2:
insert image description here
#7f7f7f:
insert image description here
#bcbd22:
insert image description here
#17becf:
insert image description here

Guess you like

Origin blog.csdn.net/gsgbgxp/article/details/126513296