I want to creat several plots in a CWGraph control, each of them has their own name and axis.
I do it like this :
CWUIControlsLib__DCWGraphGetPlots (graphhandle, NULL,&plotshandle );
CWUIControlsLib__DCWGraphGetAxes(graphhandle, NULL,&axeshandle);
CWUIControlsLib_CWPlotsAdd (plotshandle, NULL,&plothandle);
CWUIControlsLib_CWPlotSetName (plothandle, NULL, name);
CWUIControlsLib_CWAxesAdd(axeshandle,NULL,&axishandle);
CWUIControlsLib_CWAxisSetName (axishandle, NULL, name);
CWUIControlsLib_CWAxisSetMinMax (axishandle, NULL,CA_VariantFloat(-10),CA_VariantFloat(10) );
CWUIControlsLib_CWPlotSetYAxis (plothandle, NULL,axishandle);
But it doesn't work. I found that each plot use the default axis, which is predefine in the graph contron named YAxis-1.
Thanks a lot !