Effacer les filtres
Effacer les filtres

catch UIAxes in figure

7 vues (au cours des 30 derniers jours)
aldo
aldo le 11 Oct 2023
Commenté : Adam Danz le 11 Oct 2023
how catch UIAxes in new figure?
figure;

Réponse acceptée

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

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Develop uifigure-Based Apps dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by