Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

CNiGraph3D scaling

Hello,
I'm trying to scale 3D plot in y axis (has "x" label on the picture), for example from 10 to 30.
My example code is :

myNiGraph3D->GetAxes().Item(2).SetAutoScale(FALSE);
mypNiGraph3D->GetAxes().Item(2).SetMinMax(10, 30);

as a result I get:


The question is: How to scale this, that the plot wouldn't visible in range (0,10) and (30, inf)




Message Edited by anth on 11-19-2007 03:38 AM

Message Edited by anth on 11-19-2007 03:41 AM

Message Edited by anth on 11-19-2007 03:47 AM
0 Kudos
Message 1 of 2
(6,111 Views)
Hi anth,

There is a property called ClipData in CNiGraph3D class which indicates whether the data outside the axis ranges is clipped or not.
When this property is set to True, data is clipped to the axes ranges.
When this property is set to False, data is not clipped to the axes ranges.

You can set this property in the properties dialog of the 3DGraph or you can set it programmatically:
myNiGraph3D->ClipData =  TRUE;

Thanks,
Mohammed Haseeb|Measurement Studio|National Instruments
0 Kudos
Message 2 of 2
(6,058 Views)