Origin Ver. and Service Release (Select Help-->About Origin): Operating System:9 Hi There, Im trying to write a script enabling me to plot three graphs into seperate layers from one active worbook. Also I was asked to think about a script helping to plot several graphs, all from different different workbooks in one single layer. Is there any easy way to express this in Lab Talk? thanks in advance Johannes
To plot graphs into separate layers, the general way is to do it one by one (especially when your data does not share the same X and does not in the same worksheet). Or, you can plot a grouped plot to one single layer first and extract to different layers. Following is the example: // plotxy iy:=(1,2:4) plot:=200; // Plot col(2)~col(4) as a grouped line plot with col(1) as X layer -j; // Extract to separate layers layarrange row:=1 col:=1; // Arrange the layers //
For plotting several layers from different workbooks to one single layer, I think you have to use commands like "layer -i" or "worksheet -p" to add datasets to this layer one by one.