Azzera filtri
Azzera filtri

2y axis in appdesigner

47 visualizzazioni (ultimi 30 giorni)
Mirek Janda
Mirek Janda il 5 Apr 2018
Commentato: Jiri Junek il 13 Ott 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;

Risposta accettata

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

Accedi per commentare.

Più risposte (1)

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

Categorie

Scopri di più su Specifying Target for Graphics Output in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by