how to plot two y axes with different zeros?
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hi all
I want to have a plot similar to the attached figure.
It should have 2 y-axes, but the right one is shifted in position instead of having it from the original zero
the x-axis is the same.
Could anyone help?
Much appreciated.
6 Commenti
dpb
il 13 Mag 2020
Be a little creative...try
yyaxis right
ylim([-20 20])
yt=yticks;
yticks(yt(yt>=0))
and see what you get...
Risposte (0)
Vedere anche
Categorie
Scopri di più su Line Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!