2.1.14.1.27 update_plot_type


Description

Update the plot type of data plot. If this data plot is grouped with other data plots, the others will be update too.

Syntax

bool update_plot_type( DataPlot & dp, int nType )

Parameters

dp
[input] the DataPlot object
nType
[input] the plot type id, like IDM_PLOT_SCATTER, see more in oPlotIDs.h

Return

true if success

Examples

EX1

//Before run this example, a graphlayer must be active in the project
void update_plot_type_ex1()
{
    GraphLayer gl = Project.ActiveLayer();
    if(!gl)
        return;
    
    DataPlot dp = gl.DataPlots();

    update_plot_type(dp, IDM_PLOT_SCATTER);
}

Remark

See Also

Header to Include

origin.h

Reference