01-24-2006 04:19 PM
I’m currently working in visual basic .net and need to both change the colors of a 3d contour plot and eventually create legend for that plot. I also would like to draw graphics over the plot (a circle for example), representing the geometry of the current data I am plotting. This all needs to be done programmatically, not thru the properties setup of the 3dgraph. How can this be done?
Thank you,
Russ
01-25-2006 12:31 PM
Hi Russ,
I am assuming that you are using the CWGraph3D Control so here is some information on this. First off, attached is a 3DGraph example that demonstrates how to programmatically set certain zoom features. I know that you are not looking at zoom features, but as soon as you type in the GraphName and then the dot operator (Graph.), you will see a list of available methods and properties. For example, the name of the 3D graph in the example is Graph3D1. See below for a quick example of some code.
'Create the caption "Temperature vs. Time"
CWGraph3D1.Caption = "Temperature vs. Time"
'Set the caption text color to red
CWGraph3D1.CaptionColor = vbRed
'Set the caption background color to green
CWGraph3D1.BackColor = vbGreen
'Set the caption font to bold
CWGraph3D1.Font.Bold = True
Here is a link to a great tutorial on 3D graphs. I am also attaching the CWGraph3D help file so you can see a list of the properties. This help file can be found at Start >> All Programs >> National Instruments >> Measurement Studio >> Help >> Measurement Studio Reference.
Hope this helps!
Best Regards,
01-27-2006 06:34 PM