Change axis colour to a user-define color

2 ビュー (過去 30 日間)
Cris
Cris 2020 年 5 月 6 日
編集済み: dpb 2020 年 5 月 6 日
I want to change the color of part of a plot label. I can do it like this:
ylabel('\color{blue}{A}, \color{orange}B, \color{yellow}C, 'interpreter', 'tex');
But I want to define my own colors, in such a way that they match the colors of the plot.
How can I do this?

採用された回答

dpb
dpb 2020 年 5 月 6 日
Use rgb color form:
color[rgb]{specifier} Replace specifier with a three-element RGB triplet.
\color[rgb]{0,0.5,0.5} text
  1 件のコメント
dpb
dpb 2020 年 5 月 6 日
編集済み: dpb 2020 年 5 月 6 日
BTW, there's a chart of the seven (besides black) base default colors used in most plots at the doc page for text

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAxis Labels についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by