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 .
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
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:
#ff7f0e:
#2ca02c:
#d62728:
#9467bd:
#8c564b:
#e377c2:
#7f7f7f:
#bcbd22:
#17becf: