Thank you again. As it seems that you are very familiar with such commands I will ask you directly some more questions.
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.
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?
Sorry for a lot of questions but it would help me a lot if you could help me like with my questions before. If you have some questions feel free to ask!