フィルターのクリア

UIAxes changes size with each new plot

4 ビュー (過去 30 日間)
Tim
Tim 2023 年 7 月 31 日
回答済み: Harald 2023 年 8 月 1 日
Hey guys,
I am getting desperate with my Matlab app. The tool consists of a ListBox and a UIAxes. The app loads a Struct file, based on which the List Box is filled with names (fieldnames of the Struct file). If one clicks on one or more names, plots are shown in the Axis depending on the type of data (plot, pie,...). If you click on names again, the axes are cleared and it is plotted again. This works well as long as the function is "Plot". Problems occur after I have used "pie" or "pie3", for example. From this moment on, the size of the axes no longer matches the original size as soon as the "plot" function is used again. It seems that axes properties are passed, but I don't have a solution here.
Thanks for helping
Tim

回答 (1 件)

Harald
Harald 2023 年 8 月 1 日
Hi,
The cla function may help to reset the properties.
If that does not help, please supply an example app, as to me it is not clear yet what combination of plot and pie(3) you are using.
Best wishes,
Harald

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by