catch UIAxes in figure

7 次查看(过去 30 天)
aldo
aldo 2023-10-11
评论: Adam Danz 2023-10-11
how catch UIAxes in new figure?
figure;

采纳的回答

Angelo Yeo
Angelo Yeo 2023-10-11
Use uifigure instead of a generic figure.
fig = uifigure;
ax = uiaxes(fig);
  1 个评论
Adam Danz
Adam Danz 2023-10-11
The key is to specify the figure handle as @Angelo Yeo demonstrated above. You can use figure or uifigure but in uifigures the HandleVisibility property is off by default so if you call axes() or uiaxes() without specifying the figure handle, the axes will go into a new figure.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Develop uifigure-Based Apps 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by