Clear Filters
Clear Filters

2y axis in appdesigner

48 views (last 30 days)
Mirek Janda
Mirek Janda on 5 Apr 2018
Commented: Jiri Junek on 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;

Accepted Answer

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

Sign in to comment.

More Answers (1)

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

Categories

Find more on Specifying Target for Graphics Output in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!