Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Axis Range Changes after set

Solved!
Go to solution

I programatically change the range of my X Axis under various circumstances in my program. After the range is changed, the method then calls another method to plot data. However, when I enter the new method, the new range now has what I set for the minimum as the maximum. Why is the range changing on me?

0 Kudos
Message 1 of 5
(4,971 Views)
Solution
Accepted by topic author VHalbur

Hi,

 

Are you setting the axis mode to fixed?

 

ScatterGraph1.XAxes.Item(0).Mode = AxisMode.Fixed
ScatterGraph1.XAxes.Item(0).Range = New Range(0, 10)

 

 

Curt

0 Kudos
Message 2 of 5
(4,969 Views)

I'm using a Waveform Plot and have the mode set as ScopeMode so when my data exceeds the visible range, it will move over. I tried switching it to AxisMode.Fixed and I still have the same problem.

0 Kudos
Message 3 of 5
(4,968 Views)

Can you post some of the code?

0 Kudos
Message 4 of 5
(4,965 Views)

I found my problem. I said I changed it to AxisMode.Fixed and still had the problem but that's because I am using 2 graphs and only changed the property on one graph but not the other. Since I have the graphs linked (via code) so they always show the same range, I was still having the problem. As soon as I changed the second graph to AxisMode.Fixed, I no longer had this problem. 

 

Thanks!

0 Kudos
Message 5 of 5
(4,964 Views)