catch UIAxes in figure

4 Ansichten (letzte 30 Tage)
aldo
aldo am 11 Okt. 2023
Kommentiert: Adam Danz am 11 Okt. 2023
how catch UIAxes in new figure?
figure;

Akzeptierte Antwort

Angelo Yeo
Angelo Yeo am 11 Okt. 2023
Use uifigure instead of a generic figure.
fig = uifigure;
ax = uiaxes(fig);
  1 Kommentar
Adam Danz
Adam Danz am 11 Okt. 2023
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.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Develop uifigure-Based Apps finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by