Effacer les filtres
Effacer les filtres

2y axis in appdesigner

47 vues (au cours des 30 derniers jours)
Mirek Janda
Mirek Janda le 5 Avr 2018
Commenté : Jiri Junek le 13 Oct 2022
Is it possible to plot 2 y axis in the appdesigner? It is similar to plotyy in the regular figure. They you can assign the plotting axis yyaxis left/right;

Réponse acceptée

Mirek Janda
Mirek Janda le 5 Avr 2018
Modifié(e) : Mirek Janda le 11 Avr 2018
Easy solution
yyaxis(app.UIAxes,'left')
plot(app.UIAxes,xdata,ydata);
yyaxis(app.UIAxes,'right')
plot(app.UIAxes,xdata,y2data);
  4 commentaires
Andrew Davies
Andrew Davies le 17 Oct 2019
this hangs in R2019b on exit or sometimes when the UI elements are changed. Worked finein 2019a.
Jiri Junek
Jiri Junek le 13 Oct 2022
Works on 2022b.

Connectez-vous pour commenter.

Plus de réponses (1)

Iurii Medvedev
Iurii Medvedev le 9 Jan 2019
Help me please.
How to use different grids for different axes?

Catégories

En savoir plus sur Specifying Target for Graphics Output dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by