07-13-2010 05:33 PM
I replied to Adeline62's post since it's the same issue, but it might be overlooked and not get help.
I guess I followed Adeline62's steps, but I still only get the last drawing shown up after I finished drawing all plots. Do I need to add anything alse? The following is my cope.
CW3DGraphLib_CWPlots3DItem (plotsHandle, NULL, CA_VariantInt(1), &plotHandle);
CW3DGraphLib_CWPlot3DPlot3DSurface (plotHandle, NULL, xArray, yArray, dArray, CA_DEFAULT_VAL);
CW3DGraphLib_CWPlot3DSetMultiPlot (plotHandle, NULL, VTRUE);
for (i=0; i<k; i++)
{
j=i+2;
CA_VariantSet2DArray (&dArray, CAVT_DOUBLE, m, n, &cz[i]);
CA_VariantSet1DArray (&xArray, CAVT_DOUBLE, m, &cx[i]);
CA_VariantSet1DArray (&yArray, CAVT_DOUBLE, n, &cy[i]);
CW3DGraphLib_CWPlots3DItem (plotsHandle, NULL, CA_VariantInt(j),&plotHandle);
CW3DGraphLib_CWPlot3DPlot3DSurface (plotHandle, NULL, xArray, yArray, dArray, CA_DEFAULT_VAL);
CW3DGraphLib_CWPlot3DSetMultiPlot (plotHandle, NULL, VTRUE);
}
CW3DGraphLib_CWPlot3DSetMultiPlot (plotHandle, NULL, VFALSE);
07-14-2010 11:48 AM
Hello yanchu,
I was wondering if you could provide a link to the other forum so I can take a look at it and get a better idea of what is going on. Have a great day!
Best Regards,
Adam G
07-14-2010 12:24 PM
Hi Adam,
I don't know how to creat a link yet, so just copied the content from another forum.
Thanks,
Yanchu
07-15-2010 01:05 PM
Hello yanchu,
Here is an example that will plot two graphs at once. Let me know if you have any questions.
Best Regards,
Adam G