Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Using CNiGraph, how do I reset the X Axis back to zero?

I am using a CNiGraph as a strip chart.  Calling ClearData() clears out the graph, but how do I set the X Asis back to zero?
TIA
Eric

0 Kudos
Message 1 of 3
(6,543 Views)

Hi Eric,

There are several methods such as SetMinimum() and SetMinMax() that you can use to reset the X-Axis back to 0. For example, to set the X-Axis to a minimum value fo 0 you could say,

 m_graph.GetAxes().Item("XAxis").SetMinimum(0);

Or  you could use the SetMinMax() method and say

 m_graph.GetAxes().Item("XAxis").SetMinMax(0, 200);

Hope this helps!

Best Regards,

Jonathan N.
National Instruments
0 Kudos
Message 2 of 3
(6,530 Views)
Thanks Jonathan.  I know it had to easy!
Eric

0 Kudos
Message 3 of 3
(6,529 Views)