How do I use 'axis tight' with appdesigner?
31 ビュー (過去 30 日間)
古いコメントを表示
Hi, I'm using app designer to display some simple plots, how do i use the 'axis tight' command within the app designer code for the integrated figure?
I've tried this, but its not working as I want:
plot(app.UIAxes, S, Prices);
title(app.UIAxes, 'Price');
axis tight
Thanks for any help in advance!
0 件のコメント
採用された回答
Alex Karle
2017 年 8 月 17 日
Hi Matt,
Try specifying which axis you want to be tight:
plot(app.UIAxes, S, Prices);
title(app.UIAxes, 'Price');
axis(app.UIAxes, 'tight');
I have a hunch that the problem may be that "axis tight" does not find app.UIAxes, so instead you need to specify which axis you want to be tight. You do that by calling axis(<axis you want>, 'tight');
Hope this helps!
1 件のコメント
Adam
2017 年 8 月 17 日
Just as an additional note, you should get into the habit of doing this for all axes. I haven't used appdesigner much but if it forces you to specify explicit axes for operations that is a big step forward!
その他の回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Data Exploration についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!