GroupPlot::SetColormap

 

Contents

Description

Set the colormap properties of the group plot(like Waterfall Color Mapping plot).

Syntax

BOOL SetColormap( TreeNode & trColormap )

Parameters

trColormap
[input] A TreeNode object with the Tree structure of GetColormap

Return

Return TRUE if success, or FALSE if failed.

Examples

EX1

//assume there is a Waterfall Color Mapping plot
void GroupPlot_SetColormap_Ex1()
{
    GraphLayer gl = Project.ActiveLayer();
 
    GroupPlot gPlot;
    gPlot= gl.Groups(0); //get first groupplot object
    TreeNode trColormap;
    BOOL bSuccess = gPlot.GetColormap(trColormap);
    
    trColormap.Min.nVal = 3;
    trColormap.Max.nVal = 6;
    bSuccess = gPlot.SetColormap(trColormap);
}

Remark

See Also

GroupPlot::GetColormap

header to Included

origin.h