Filter löschen
Filter löschen

Plot different values with different axes

1 Ansicht (letzte 30 Tage)
Daniele Morello
Daniele Morello am 25 Sep. 2015
Kommentiert: Thorsten am 25 Sep. 2015
hi everyone, i have to realize a graph in GUI like in picture.
so, i have torque data and power data. When i plot them on the graph, all data has the same y-axis (on the left). How can i obtain the second axis (for the power) on the right, each axis whit own scale?
I have also the possibility to select just only one parameter, so if i select only Power parameter, it has to plot always with its axis on the right side.

Antworten (1)

Thorsten
Thorsten am 25 Sep. 2015
  2 Kommentare
Daniele Morello
Daniele Morello am 25 Sep. 2015
plotyy works only if i have all 2 parameters? if i want to use it only to plot 1 parameter with axis on the right side?
then, it works for the graphs in GUI?
Thorsten
Thorsten am 25 Sep. 2015
plot(1:100, 1:100)
set(gca, 'YAxisLocation', 'right')

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Two y-axis finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by