第二軸の軸の色を変える方法について
Afficher commentaires plus anciens
このようなグラフで右側の第2軸の色を黒色に変更したいのですが,適切なやり方が分かりません.
ご教授いただけますと幸いです.よろしくお願いいたします.

3 commentaires
Naoya
le 5 Oct 2020
2軸の具体的な作成方法は把握しておりませんが、
例えば以下の様に yyaxis で 2軸を作成した場合は
カレントのaxis に 2種類の YAxis が含まれますので
その 2つめの YAxis に対して色を明示指定することで
右側の軸の色を黒に変更することはできますが、ご検討できそうでしょうか?
>> yyaxis left;
>> ax = gca;
>> ax.YAxis(2).Color = [0 0 0];
Taiga Miyashita
le 5 Oct 2020
Naoya
le 5 Oct 2020
ありがとうございます。解決されたようで安心しました。
それでは念のために "回答" として情報を残しておきます。
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Annotations dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!