change title color without modifying the original?

2 ビュー (過去 30 日間)
Erwin Avendaño
Erwin Avendaño 2017 年 11 月 12 日
コメント済み: Erwin Avendaño 2017 年 11 月 12 日
I want to change the color of the title of axes but without modifying it is to say that if graphic cos (x) that cos (x) appears but in yellow

採用された回答

Walter Roberson
Walter Roberson 2017 年 11 月 12 日
If you can locate a handle to the title "text" graphics object, then you can set the Color property of it. However, this would set the color of all of the text, not just part of it. The title "text" object has a hidden handle:
ax = gca;
potential_title_objects = findall(ax, 'type', 'text', 'handlevisibility', 'off');
If you wanted to set the color of just part of the text of a title(), then you have to modify the String property of the text object, as I described in your previous https://www.mathworks.com/matlabcentral/answers/366350-how-to-change-the-color-of-the-axes-graph-numbers#answer_290461
There is no way to change a property of something without modifying its properties.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLabels and Annotations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by