leto / math--gsl

Perl interface to the GNU Scientific Library

math--gsl / examples / sf / plot_bessel.gnuplot
100644 12 lines (7 sloc) 0.449 kb
1
2
3
4
5
6
7
8
9
10
11
12
set title "Bessel Functions J_0(x), J_1(x), J_2(x), J_3(x), J_4(x), J_5(x)"
 
set terminal png
set output "bessel.png"
 
plot "bessel.data" using 1:7 t 'J_5(x)' with lines, "bessel.data" using 1:6 t 'J_4(x)' with lines, "bessel.data" using 1:5 t 'J_3(x)' with lines, "bessel.data" using 1:4 t 'J_2(x)' with lines, "bessel.data" using 1:3 t 'J_1(x)' with lines, "bessel.data" using 1:2 title 'J_0(x)' with lines
 
unset output
set terminal x11
 
replot