08-26-2010 07:33 PM
I use the CWiGraph control, setect YAxis Log , when I change the different minimun values for YAxis, some minimum values can't be display on the YAxis. I know if I select Number of Divisions for ticks, any minimum value is displayed on the plot, but now I am using YAxis Log , Number of Division is not enable to be selected. I have no idea to solve this problem. Please give me some help. thanks.
Min
08-30-2010 03:55 PM
Hi mliu,
Placing the y-axis of the graph in Log mode will only allow you to see tick marks in 10's (eg 1,10,100...). If you manually set the minimum, the value will still be there and the axis will still start at the respective value, however, you will not see a tick mark. One option you would have to show a tick mark and value at that point would be to use value pairs.
08-31-2010 01:10 AM
Hi Ryan T,
Thanks for your reply. I try to use value pairs, now all values I want are displayed , but the another problem comes up. For example, SetMinMax(1.5e-12,1.5e-10), when using value pairs, five values, 1.5e--10,1.0e-10,1.5e-11.1.0e-11,1.5e-12, will show on the plot, that is not what I want. How can only my value pairs,1.5e-12,1.5e-11,1.5e-10, show on the plot.
Thank you very much.
mliu
08-31-2010 03:52 PM
Hi mliu,
In the y-axes properties, you should be able to select Value Pairs Only.
09-01-2010 01:38 PM
Hi Ryan T,
I tried to change the y-axes property , but can't find the way to show ValuePairs only. If I uncheck labels in Ticks page for y-axes , all labels can't show including value pairs. Would you please tell me the detail method.
Thanks,
mliu
09-02-2010 11:53 AM
Hi mliu,
You should be able to use the following code to set the graph to display value pairs only:
your_graph.GetAxes().Item(
"YAxis-1").ValuePairsOnly = true;09-02-2010 01:24 PM
Hi Ryan T,
I just used ValuePairsOnly in my code following your instruction, but when compliing , show the error message: error C2039: 'ValuePairsOnly' : is not a member of 'CNiAxis'. I also search the measurement studio 6.0 reference and find ValuePairsOnly is used for CNiSilde, CNiKnob, CNiPointer. I don't know if the plot has the ValuePairsOnly property.
Thank you.
mliu
09-03-2010 04:24 PM
Hi mliu,
Previously I tried the code in Measurement Studio 2009, but I just set up a test machine with Measurement Studio 6 and found that when you go to the properties on your graph itself, you should get the following option:
09-07-2010 01:51 PM
Hi Ryan T,
I checked my CWGraph property again, there is no Value Pairs Only option in Axes page. I just attached the image of CWGraph Property . I believe I use the measurement studio 6.0.
Thanks again
mliu
09-08-2010 01:31 PM
Hi mliu,
My screenshot was done in 6.0 so it must be an earlier version that you have. In your situation, especially if you thoroughly searched the help, it doesn't look like you have the ability to display only value pairs. One option that you have is to upgrade your version of Measurement Studio.