09-02-2011 08:23 AM
Hi all,
I am trying to plot two different data sets both with respect to time on the same XY graph using two y scales. See attachments for reference. The graph looks fine when I plot only one data set. What I want is to have the second data plotted on the same graph that would look similar to the profile of the single plot only using it's own y scale. You can see from the dual y-axis graph, that this is not what I want. Any suggestions?
09-02-2011 10:40 AM
Have you had a look at the example XY Graph.vi in Example Finder. Let us know if you still have questons after that.
09-02-2011 10:46 AM
I have looked at that at came up empty. As of right now the data is being brought into the xy graph as a 1D array of cluster of two elements. The 1st cluster in the array is x-time and y-force, the next cluster is x-time and y-speed, these continue to alternate through total time x. Both of the data sets are being plotted on the same y scale. What I want is all the force vs. time clusters plotted on one y scale and the speed vs. force clusters plotted on a different y scale.
09-02-2011 03:22 PM
I'm not sure if it is the same on newer versions, but in 8.6 you do that in the properties of the X-Y graph. Choose the plot you want on its own scale and choose the scale you want to plot it on.
09-06-2011 07:52 AM
You can also access these properties through VI server calls to the XY graph.
10-04-2011 06:18 PM
I also need to have two Y axis on one graph. I am using LV-2011, 32 bit. The XY Graph.vi does not have a dual axis example and my XY Graph properties display does not have an Amplitude 2 (Y-Axis) choice on the Plots tab. Can anyone give more details on how to get dual axis's on one chart? Thanks.
10-05-2011 07:36 AM
Right click on the existing Y scale and select Duplicate Scale. You will then have another scale which will show up in the properties dialog. Unfortunately, this is the only way I know to create a new scale.
11-29-2013 05:49 AM
This thread is quite old but for future references I am posting what I think is getting unnoticed here. If you want to have multiple scales on a XY graph, you need to map the plots to the scales. To do this,after you make a duplicate scale, right click the plot in the plot legend and select from the X Scale or Y Scale shortcut menus. If the plot legend is not visible, right-click the graph or chart and select Visible Items»Plot Legend from the shortcut menu.This explains why some members were getting similar profiles on different scales when they duplicated the scales.