November 8, 2011, 12:19 pm
To create more than one window in a gnuplot script could be necessary if you have many data series to plot. The following code snippet shows how:
1 2 3 4 5 6 7 8
| set term wxt 0
set grid xtics ytics
plot 'prop_stat.txt' u 1:2 ti "rg" w l , \
'prop_stat.txt' u 1:3 ti "rg^2" w l , \
'prop_stat.txt' u 1:4 ti "e2e^2 " w l
set term wxt 1
set grid xtics ytics
plot 'prop_stat.txt' u 1:5 ti "/" w l |
The essential point here is to use twice(or more times) “set term” commands with different window ID.
Continue reading ‘Multiple windows with gnuplot’ »
May 6, 2010, 9:12 pm
For gnuplot version older than 4.4, ‘plot for’ is not an option to plot multiple files. In order to make it work and easier, I wrote a BASH script to generate the gnuplot input for multiple file plotting. You are lucky too find this if you are still using old version of gnuplot. No need to use it for the lastest version.
Continue reading ‘A bash script to plot multiple files in old version of gnuplot’ »