Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I get the values on Xaxis and Yaxis?

Hi, I would like to get the values that are on the axis X and Y or to get the base value and the ticks interval for calculating the values.
0 Kudos
Message 1 of 6
(4,322 Views)
You can get the base values and intervals via the following properties:


  • XAxis.MajorDivisions.Base

  • XAxis.MajorDivisions.Interval

  • XAxis.MinorDivisions.Base

  • XAxis.MinorDivisions.Interval

  • YAxis.MajorDivisions.Base

  • YAxis.MajorDivisions.Interval

  • YAxis.MinorDivisions.Base

  • YAxis.MinorDivisions.Interval



Note that calculating the values from these properties will only work if the axis AutoSpacing property is false. Otherwise, the ticks and labels are automatically determined by the graph depending on the available space to present something that always looks nice.

- Elton
Message 2 of 6
(4,322 Views)
Hi Elton,

Thanks again for the help! Do you know if these changes are persisted when changing the scale to linear and/or zooming?

Thanks,
Derek
0 Kudos
Message 3 of 6
(4,322 Views)
I'm not sure what you're asking. Do you mean do the values change when the scale type is changed or the graph is zoomed? The properties have default values or values that are explicitly set and they don't change until you explicitly change them. The Base and Interval properties are not taken into consideration when the scale type is logarithmic. Regarding zooming, the only thing that really changes on the axis is the range.

- Elton
0 Kudos
Message 4 of 6
(4,322 Views)
Sorry - I replied to the wrong post...

Derek
0 Kudos
Message 5 of 6
(4,322 Views)
Hi Elton,

Thank you for the response, but it doesn't work for my application. I need to plot a graph with autoscale mode or by setting min-max axis values and after getting the interval and base values. So if I set AutoSpacing to False and then i get the XAxis.MajorDivision.Interval value, i will obtain the default value and not the axis value!
Are there any solution for getting this values? Now , i calculate the interval in function of the min-max value!
0 Kudos
Message 6 of 6
(4,322 Views)