Hi Lin,
Now, I just can show how to change the settings in Pattern and spacing Tab in Plot Details dialog. The following function changed the setting by Tree that provided by Theme.
void scatter_plot(string strGraph, int ntype)
{
GraphLayer glay = Project.ActiveLayer();
if(!glay)
return;
DataPlot dp = glay.DataPlots(0);
Tree tr;
tr = dp.Curve; // get the internal Curve branch of Theme Tree, you can use "out_tree(tr);" to output the tree to view the structure
tr.Pattern.Border.Color.nVal = ntype; // set border color, same as in Theme
dp.Curve = tr; // update surface branch from tree
}
void test()
{
int nType = 14; //Orange, or the following line
// int nType = RGB(255,128,0) | OCOLOR_RGB_FLAG_BIT;
scatter_plot("Graph1", nType);
}
Please get more codes regarding setting from:
http://www.originlab.com/forum/topic.asp?TOPIC_ID=2909
To know about Theme:
1. Right click on Graph and select Save Format As Theme...
2. In opening dialog, click Filters button(pencil), you will see a Tree including some settings.
3. You can set all feature in the tree in your codes like the above.
Iris