フィルターのクリア

2 scales on an ax

5 ビュー (過去 30 日間)
Ana Monea
Ana Monea 2020 年 5 月 19 日
回答済み: Ameer Hamza 2020 年 5 月 19 日
I have 2 scales on an ax and i want to get rid of one of them. Do you know if it is possible? I used plotyy and on the lef ax everything is fine, but on the right ax i have to scale. One is correct and the other one is extra and i don t know where it came from.

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 5 月 19 日
You can make the right y-axis invisible like this. First, create two axes
ax = axes();
plot(rand(1,10))
yyaxis('right');
plot(rand(1,10))
then make the right axes invisible using this
yyaxis('right');
ax.YAxis(2).Visible = 'off';

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by