16 lines
504 B
Gnuplot
Executable File
16 lines
504 B
Gnuplot
Executable File
#!/usr/bin/gnuplot
|
|
# usage:
|
|
# gnuplot -e "file='data.dat'; column1=1; column2=2; format=''; out=''" line.gp
|
|
#
|
|
# format = {'terminal', 'svg'}
|
|
|
|
if(!exists("file")) file = 'data.dat'
|
|
if(!exists("column1")) column1 = 1
|
|
if(!exists("column2")) column2 = 2
|
|
if(!exists("format")) format = 'terminal'
|
|
if(exist('format') && format eq 'terminal') set terminal dumb; set tics scale 0
|
|
if(exist('format') && format eq 'svg') set terminal svg
|
|
if(exists("out")) set output out
|
|
|
|
plot file u column1:column2 w l notitle
|