Okay, if anyone knows of a way to make this go faster, they will be my hero forever. I'm making like a hundred graphs, and I'm typing the same thing over and over again, and what I would really like to do is write a script that will do this all at once, but I can't figure out how to do it. This is what I'm doing:
plot "filename.txt" with line
load "save.plt"
!mv my-plot.ps filename.ps
!lpr filename.ps
And I have to do this for 40 different files, and there are 4 different x-ranges, so that's like 120 graphs. So if anyone knows how to just do that much in a script that will do all 40 files at once, I will love you forever. Because then I would only have to type all of that 4 times instead of 120 times.
Any gnuplot experts out there?
- Laser Jock
- Tech Admin
- Posts: 630
- Joined: Sat Apr 14, 2007 4:07 pm
Hopefully I'm not too late here...
If I'm understanding you right, this would be pretty trivial in any generic scripting language, e.g., Python. (Gnuplot has an option to give commands directly from the system command line, according to the documentation, though I haven't worked with it before.) Email me and I'd be glad to put together a quick script (after making sure of some details of what you're doing):

If I'm understanding you right, this would be pretty trivial in any generic scripting language, e.g., Python. (Gnuplot has an option to give commands directly from the system command line, according to the documentation, though I haven't worked with it before.) Email me and I'd be glad to put together a quick script (after making sure of some details of what you're doing):

- Laser Jock
- Tech Admin
- Posts: 630
- Joined: Sat Apr 14, 2007 4:07 pm