HolyBell's Blog
2021-09-03
Matlab 自訂顏色
Matlab 除了 rgbcmykw 之外,其他顏色需要用 [r,g,b] 來自訂,但是 legend 的部份寫法又不一樣
在 plot 的時候,可以用
plot(x,y,'Color',[49,117,137]/255)
但在 legend 的部份需要寫
legend([p1 p2 .... ],{'\color[rgb]{0.192 0.459 0.537} 3C58', '\color[rgb]{1 0.651 0.192} G21',....}
沒有留言:
張貼留言
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言