I've dug around for a solution to this problem in the FAQ and elsewhere with
no luck. I'm still relatively new to gnuplot so it's very possible I have
missed something. Thank you in advance for your attention. Here's the issue:
I am trying to write a .gpl file that will automatically grab the correct
data points from a data set I've produced, for a variable number of data
points. More specifically, I am creating gif images of vector field plots on
a 2-d lattice that can vary in size, e.g., 32x32 or 64x64 lattices. I'd like
to be able to automate the process so that I do not have to alter the .gpl
every time I change my program parameters. I need the automation to do two
things: deal with changing lattice sizes and produce .gif's with varying
numbers of frames.
Here is an example of what I have at the moment:
set title "t=1"
plot "<(sed -n '2,101p' vecgif)" using 1:2:3:4 with vectors filled head lt
set title "t=2"
plot "<(sed -n '104,203p' vecgif)" using 1:2:3:4 with vectors filled head lt
The above is a snippet from my current .gpl script that produces a .gif
animation of a 10x10 lattice at two different times. The problem is that if
I want to change the lattice size I will have to change the row numbers in
both lines, and if I want say 3 frames instead of 2, I have to manually add
in another command. I would like to avoid having to do this, if possible!
View this message in context: http://gnuplot.10905.n7.nabble.com/Automated-script-to-plot-a-variable-number-of-data-points-tp17512.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.