change custom variable format to fformat b/c format is already used
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
usage:
|
usage:
|
||||||
gnuplot line.gp run line.gp script
|
gnuplot line.gp run line.gp script
|
||||||
gnuplot -p line.gp run script and kepp figure open
|
gnuplot -p line.gp run script and kepp figure open
|
||||||
gnuplot -e "file='data.dat'; column1=1; column2=2; format='svg'; out='line.svg'" line.gp
|
gnuplot -e "file='data.dat'; column1=1; column2=2; fformat='svg'; out='line.svg'" line.gp
|
||||||
run script with altered variables
|
run script with altered variables
|
||||||
|
|
||||||
[line.gp](./line.gp)
|
[line.gp](./line.gp)
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
usage:
|
usage:
|
||||||
gnuplot line.gp run line.gp script
|
gnuplot line.gp run line.gp script
|
||||||
gnuplot -p line.gp run script and kepp figure open
|
gnuplot -p line.gp run script and kepp figure open
|
||||||
gnuplot -e "file='data.dat'; column1=1; column2=2; format='svg'; out='line.svg'" line.gp
|
gnuplot -e "file='data.dat'; column1=1; column2=2; fformat='svg'; out='line.svg'" line.gp
|
||||||
run script with altered variables
|
run script with altered variables
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
#!/usr/bin/gnuplot
|
#!/usr/bin/gnuplot
|
||||||
# usage:
|
# usage:
|
||||||
# gnuplot -e "file='data.dat'; column1=1; column2=2; format='svg'; out='line.svg'" line.gp
|
# gnuplot -e "file='data.dat'; column1=1; column2=2; fformat='svg'; out='line.svg'" line.gp
|
||||||
#
|
#
|
||||||
# format = {'terminal', 'png', 'svg'}
|
# fformat = {'terminal', 'png', 'svg'}
|
||||||
|
|
||||||
if(!exists("file")) file = 'data.dat'
|
if(!exists("file")) file = 'data.dat'
|
||||||
if(!exists("column1")) column1 = 1
|
if(!exists("column1")) column1 = 1
|
||||||
if(!exists("column2")) column2 = 2
|
if(!exists("column2")) column2 = 2
|
||||||
if(!exists("format")) format = 'terminal'
|
if(!exists("format")) format = 'terminal'
|
||||||
if(exist('format') && format eq 'terminal') set terminal dumb; set tics scale 0
|
if(exist('fformat') && fformat eq 'terminal') set terminal dumb; set tics scale 0
|
||||||
if(exist('format') && format eq 'png') set terminal png transparent enhanced
|
if(exist('fformat') && fformat eq 'png') set terminal png transparent enhanced
|
||||||
if(exist('format') && format ne '') set terminal format
|
if(exist('fformat') && fformat ne '') set terminal fformat
|
||||||
if(exists("out")) set output out
|
if(exists("out")) set output out
|
||||||
|
|
||||||
plot file u column1:column2 w l notitle
|
plot file u column1:column2 w l notitle
|
||||||
|
|||||||
Reference in New Issue
Block a user