plotyy with different data ranges to visually appear equal.
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Ok. When making a line plotyy graph, the two y-axis have data with different ranges.
For example
y(1) has a range from 0:14
and
y(2) has a range from 5.9:6.35
Because of this difference in ranges, the second line graph is generated to "float above" the first line graph in the plot.
What I want to do is have the two line graphs fit in the graph where even though they have different value ranges, one doesn't float over the other (maybe in other words to have the same local max and same local min.)
So that the value of 5.9 on y(2) will visually meet with the value of 0 on y(1) in the plotyy graph.
Any help is most appreciated!
1 Commento
Matt Fig
il 24 Ott 2012
Please create real example code that can be copied and pasted. Once you give code that will run so that we see what you see, then give a description of what you want to see.
Risposte (2)
Walter Roberson
il 23 Ott 2012
You should be able to set() the YLim properties of the two axes objects independently.
1 Commento
Vedere anche
Categorie
Scopri di più su Two y-axis 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!