LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to superimpose 2 graphes with different axises?

I've 2 graphs(pressure vs time, and temperature vs time), and I'd like to put them into 1 single graph. How could I do that? Thanks.
0 Kudos
Message 1 of 6
(2,970 Views)
Hi Manson,

Right click on the x or y axis and select DUPLICATE SCALE and SWAP SIDES if you need to. You can define which plot belongs to which x or y axis in the properties page of the graph or in the plot legend.

Hope this helps.

Regards,
Luca
Regards,
Luca
Message 2 of 6
(2,970 Views)
This is exactly what I want to do. Thanks!
0 Kudos
Message 3 of 6
(2,970 Views)
One more question... After the superimposing, I've 2 scales (pressure and temperature) on my y-axis, so I'm supposed to have also 2 inputs (pressure and temperature) right. But the graph icon only takes 1 input. Should I use an array to hold the 2 inputs and then wire the array output to the graph input? Do I need to take the transporse of the array? (Sorry I'm new to LabVIEW) Thanks.
0 Kudos
Message 4 of 6
(2,970 Views)
Yes, you need to build a 2D array from your 2 1D arrays (Use Build array from the array palette). Don't transpose anything.

Now you also need ot expand the legend to show two traces. Righ-clicking will let you select which axis should be used for each. (see image)
0 Kudos
Message 5 of 6
(2,970 Views)
I see. Thanks altenbach.
0 Kudos
Message 6 of 6
(2,970 Views)