Generate gnuplot Scripts For Data Sets

plot.sh is a script I wrote as a hack to “dynamically” generate gnuplot scripts for each of the regions I need to plot. There is probably a better way to do this but I am not a gnuplot guru.

My program stored the results of each batch of particles in a numbered folder as well as aggregating the results in the main directory. The script allows you to select whether you are plotting the z-distribution or the v-distribution.

The syntax is:

./plot.sh z .

Plots the z-distribution from the zstate file in the main directory.

./plot.sh +8 .

Plots the v-distribution of the eighth bin in z, the file vstate+8 in the main directory.

./plot.sh +8 0

Plots the v-distribution of the eighth bin in z, the file vstate+8 in the 0 directory, the directory storing the results for the first batch of particles.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>