Origin 2021 (64-bit) 9.8.0.200
Operating System: Win 10
Hello there,
I'm working on my Master Thesis and use Origin for the first time. I have some difficulties with formating some plots and the Guide isn't very helpful. It is really hard to learn Origin C with this Guide.
There is no Problem formating (e.g. change LineWidth of) a plot line, if there is only one X-Set and one Y-Set of Data in a DataRange with these lines of code:
DataPlot dp = gl.DataPlots(-1);
tr = dp.GetFormat(FPB_ALL, FOB_ALL, true, true);
tr.Root.Line.Width.dVal = 1.5;
if( 0 == dp.UpdateThemeIDs(tr.Root))
{
bool bRet = dp.ApplyFormat(tr, true, true);
}
The problem arises when i want to use a DataRange with one X-Set and several Y-Sets. Then the GetFormat function doesn't resul in a functional tree variable independent of the Dataplot i chose, so I can't change any properties. I know I can change these properties by hand in the Graph, but it would take ages, I'll need a lot of graphs. I would be glad about some help.