T O P I C R E V I E W |
DrMK |
Posted - 03/20/2020 : 05:02:47 AM Origin 2019b (32-bit) 9.6.5.169 Windows 10
I wrote a script which plots different data from different sheets into one graph. The number of sheets and also the number of columns in a sheet isn't fixed and varies from time to time.
(Script: win -c UI53Chargennummern;
string fPath$ = %@BAnwenderdateien\; string fname$ = fPath$ + "UIPlot53.otpu"; doc -a %(fname$);
win -a UI53; loop (ii, 4, page.nlayers) {plotxy iy:=$(ii)!(?,1:24) plot:=200 color:=$(ii) ogl:=[UI53Chargennummern];}; win -a UI53Chargennummern;)
UI53 is the name of the workbook UI53Chargennummern is the name of the graph UIPlot53.otpu is the template for the graph
Now I've got some problems with the design of the curves:
1. I want that each curve has a different color, with color=$(ii) I get the same color for some data if more than one dataset is in a sheet. Is there any possibilty to tell Origin to use the next color which isn't used yet?
2. Can I design the plot of each sheet individually? For example plots from sheet x are dashed and plots from sheet y are solid? In the plotxy function I couldn't find a possibility to set the line style. Only afterwards for example with the function set name -d style# but with this function I'Ve got also problems to sepcify the data on which I want to apply the function.
3. Is there a possibilty to set the transparency of the lines in a script?
Thank you
Matej
Matej |
|
|