[App Designer] How do I construct a UIAxes with a variable y-axis that remains static in size?
Afficher commentaires plus anciens
Hello everyone,
I am a novice MATLAB user. I am attempting to construct a UIAxes that plots categorical values on the x-axis and doubles on the y-axis.
Using the GUI, I have placed the figure where I would like and wrote code to create the figure.
plot(app.UIAxes_2, x, y, 'o');
I have selected the following options...
DataAspectRatioMode = Manual
PlotBoxAspectRatioMode = Manual
YLimMode = Manual
XLimMode = Manual
With these options, the app opens as designed. However, once the plot function runs, the aspect ratio of the figure changes and it no longer adheres to the original placement of the figure.
Futhermore, I would like to vary the limits on the y axis as different doubles would be double. However, setting y-axis to auto seems to further cause the plot box to be mishapen.
Réponses (0)
Catégories
En savoir plus sur Develop Apps Using App Designer dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!