display change after yyaxis in App designer

1 vue (au cours des 30 derniers jours)
Yu Li
Yu Li le 12 Déc 2018
Commenté : Yu Li le 16 Déc 2018
Hi:
after I use yyaxis->left in app-designer, the display of the figure changed (shrink in horizental direction), please see picture below:
Untitled.jpg
what's strange is that, the app.UIAxis.Position of the yy-aixs figure (top) is the same with original figure (bottom), I'm not sure if there is any mistake with my operation. is there anyway to set it back to what is was before?
Thanks!
Yu

Réponses (1)

Cris LaPierre
Cris LaPierre le 12 Déc 2018
Modifié(e) : Cris LaPierre le 12 Déc 2018
Your axes size includes the axes and labels. You are just comparing the white canvas, but you need to take into consideration all the components of the axes when sizing your plots.
The point being when you call yyaxis left, it needs to add a y-axis on the right side of your axes as well, and since the size of the uiaxis was set when you placed it on the app canvas, it has to use up some of the real estate on the right hand side to add it, making the actual plotting area smaller.
To correct for this, you need to adjust the footprint of the uiaxes in the Design View in app designer.
  1 commentaire
Yu Li
Yu Li le 16 Déc 2018
Thanks for your reply, I also received an answer from Matlab Support, their suggestion is the same with yours since the inner size is resd-only and can not be changed. I adjust the original figurein the Design view to resolve this problem.
Untitled.jpg
Bests,
Yu

Connectez-vous pour commenter.

Catégories

En savoir plus sur Graphics Objects 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