How to plot second graph with second axis with animated line?
Mostra commenti meno recenti
Hello Friends!
I have created a simulation which generates plots using the animated line function. I already have two lines in one plot, but the problem is, the other
is not really visible because the values are too small compared to the other. Is it possible to create a second animated line in the same plot, but values of the
second line refer to a second y-Axis on the right side of the plot? So then the second line would be clearly visible.
Thanks a lot in advance!
3 Commenti
BananaBandana
il 12 Ott 2019
Michal
il 15 Ott 2019
As far as I can tell it should work with animatedline:
yyaxis left
animatedline(x1,y1)
ylim([MIN,MAX]) % you can set y-axis limits of the left axis
yyaxis right
animatedline(x2,y2)
ylim([MIN,MAX]) % you can set y-axis limits of the right axis
Would you be able to share some of your code for your animated line? I have a feeling you might need something more complex than what I suggested above.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Animation in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!