Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

How to plot more surface in the same CWGraph3D?

how to add tow or more surface in the same control CWGraph3D?
0 Kudos
Message 1 of 3
(3,849 Views)
The 3D graph has a Plots property which is a collection of 3D plots. You can add multiple 3D plots to the plots collection and then plot data on each individual plot to get multiple surfaces in the same control. You can add multiple plots at runtime by calling the Add method on the Plots property. You can add multiple plots at design-time via the Plots tab in the 3D graph's property pages.

- Elton
0 Kudos
Message 2 of 3
(3,849 Views)

Hello, I have a similar problem. My development environment is Visual Studio 2010 where I am trying to display 3 different scatter points in different plots. From the ActiveX Control property I have defined several plots for point plot style (different in shape and colors). Now I am struggling to specify a plot for a series.  

 

// Three point coordinates I need to display

CCWSafeArray    vDataX0(&S[0][0], 1);
    CCWSafeArray    vDataY0(&S[0][1], 1);
    CCWSafeArray    vDataZ0(&S[0][2], 1);

    CCWSafeArray    vDataX2(&S[1][0], 1);
    CCWSafeArray    vDataY2(&S[1][1], 1);
    CCWSafeArray    vDataZ2(&S[1][2], 1);

    CCWSafeArray    vDataX4(&S[3][0], 1);
    CCWSafeArray    vDataY4(&S[3][1], 1);
    CCWSafeArray    vDataZ4(&S[3][2], 1);

......................

m_plot.Plot3DCurve(vDataX2, vDataY2, vDataZ2, vOptional);

 

Suppose, I want to use "Prb" plot (defined via control property) for the data above, how do I do that? 

Even, "int count = m_plot.GetPlots().GetCount();" showing me the corrent number of plots I have defined in the control.

 

Best regards.

0 Kudos
Message 3 of 3
(3,338 Views)