How to disable Subplot XtickLabel designed with App Designer

1 回表示 (過去 30 日間)
balandong
balandong 2020 年 3 月 30 日
コメント済み: balandong 2020 年 3 月 30 日
I would like to disable the Xticklabel for the first subplot, and only the Xticklabel only visible on the second subplot.
However, upon plot, I notice the Xticklabel still visible despite having the following config.
fig=SomethigDesignUsingAppDesigner
fig.UIFigure.AutoResizeChildren = 'off';
ax1 = subplot(6,1,1,'Parent',fig.UIFigure,'XTickLabel',[]);
ax2 = subplot(6,1,2,'Parent',fig.UIFigure);
plot(ax1,[1 2 3 4],[100 90 40 70])
plot(ax2,[1 2 3 4],[11 91 4 7])
Appreciate if someone can shed some light about this problem
Matlab 2019a

採用された回答

Peng Li
Peng Li 2020 年 3 月 30 日
編集済み: Peng Li 2020 年 3 月 30 日
have you tried update ax1 XTickLabel after the plot?
add ax1.XTickLabel = ''; after your plot line and see.

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by