I tried to automize my plots using a script file (with lots of help from the forum!). Somehow there must be a mistake in the code... The script works only sometimes, even with the same data the graphs are not always displayed when using the script file. Last time after a programm restart e.g. just one (instead of two) graph windows appeared and this one was empty. So does anybody with some more experience see an obvious mistake:
I just noticed the following: When I start the script in a new Project an empty graph with just axis appears. When I delete this window an open the first template from the script manually then I get the dat displayed but all in red color. When I then delete this graph window again and rerun the script then everything is correct - both graphs are displayed with right colors and legends. has anybody an idea how the manage this? Regards, Selinger78
1. The unnecessary "};" at the end of the open command is sure to produce wierd results. (Assuming it's not just a transcription error.) Also, I don't see where you've defined %W. First three lines should be
getfile *.dat; open -w %A; %W=%H;
2. The '?' character is not allowed in file names. (your graph template) That could also be creating problems.
3. Your worksheet -s commands merely select the columns one at a time ending up with only col 6 selected. Does no harm but serves no purpose since you add the columns one at a time to each graph layer.
As always you were right. Don't know how the bracket came there. With your first 3 lines it works fine. I also changed the template-names just to be sure to produce no more errors or strange outputs.