02-20-2007 11:19 AM
02-21-2007 07:03 AM
There is an example installed with Measurement Studio, that shows how this is done:
.../National Instruments/MeasurementStudioVS2005/DotNET/Examples/UI/Windows Forms/Graph/Axes
02-21-2007 10:10 AM
Thanks for this info.
This kind of auto scale is applied on the entire data plotted in the graph. Unfortunately my problem is a different one: The data has already been zoomed at the x-axis (via XAxis.Range = new Range(…);, so that only a part of the originally plotted data is visible in the plot area. In this case the YAxis.Mode = AxisMode.Loose doesn’t re-scale the axis.
I’m afraid I have to loop over the data range to find the y-limits and implement my own auto-scale function. Or is there another way?
Cheers Andy
02-21-2007 10:35 AM
In my test, I was able to get the graph to auto scale based on the data. Here is what I did:
I was able to get the y-axis to auto scale after step 3. Please could you post a sample of your application that reproduces this behavior?