I am trying to animate the time evolution of the probability density of a wave-function of a system (1D), and already created a file with the amplitude of each point in x: the first row of the file is the x coordinate partition and the following rows are the amplitude of the those points every time-step.
This is a simplified example:
0.0 0.2 0.4 0.6 0.8 1.0 #x partition
2.0 2.1 2.3 2.2 1.9 1.6 #1st time-step amplitud value of each
1.9 2.0 2.2 2.2 2.1 1.9 #2nd time-step amplitud value of each
.
.
.
4.0 4.2 3.9 3.5 3.2 2.9 #nth time-step amplitud value of each
The point is that every time-step (i) I have to plot the i-th row versus the first row, and don't know how to do it.
Ultimately I would like to make an animated gif with gnuplot using this data file.
pgplot. It's old school, but it works. astro.caltech.edu/~tjp/pgplot/gidriv.html - Jack