LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CWGraph SetAxis problem in multi plot

Hi,

I'm using Labwindows/CVI 6.0 in win2K, I have a CWGraph with 4 different plots and 4 Y axes with different Ranges, some from -5 to 5 and others -1000 to 2000, the problem is that the scales are set to autoscale, and if all plots have data that cause to have a line type graph, well the autoscale will bring them all in the middle of the graph so I won't be able to see them all. I'm trying to add a offset control that will change the axis range value, but I'm loosing the plots, why ?, is it possible to see all my plots seperated by an Offset ?

any idea...

Thank you,
0 Kudos
Message 1 of 2
(3,045 Views)
You don't really want to use the AutoScale option on the y-axes because it is intended to center the plots in the graph exactly as you are seeing. If you just set up the ranges for each y-axis so that the plot tied to it will display in a certain area of the graph then that is where it will be placed. The only worry you might have is if the plot data goes outside the range you are expecting and in that case you can't do much about it anyways because it was unexpected in the first place. You can put in code that checks for peaks in the plot data to see if you need to rescale each y-axis, but that is all you can really do to avoid this scenario.

Jason F.
Applications Engineer
National Instruments
www.ni.com/ask
0 Kudos
Message 2 of 2
(3,045 Views)