example usage
This commit is contained in:
@@ -3,6 +3,12 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
usage:
|
||||||
|
gnuplot line.gp run line.gp script
|
||||||
|
gnuplot -p line.gp run script and kepp figure open
|
||||||
|
gnuplot -e "file='data.dat'; column1=1; column2=2; format=''; out=''" line.gp
|
||||||
|
run script with altered variables
|
||||||
|
|
||||||
[line.gp](./line.gp)
|
[line.gp](./line.gp)
|
||||||
|
|
||||||

|

|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
|
|
||||||
|
#+begin_src sh
|
||||||
|
usage:
|
||||||
|
gnuplot line.gp run line.gp script
|
||||||
|
gnuplot -p line.gp run script and kepp figure open
|
||||||
|
gnuplot -e "file='data.dat'; column1=1; column2=2; format=''; out=''" line.gp
|
||||||
|
run script with altered variables
|
||||||
|
#+end_src
|
||||||
|
|
||||||
[[file:./line.gp][line.gp]]
|
[[file:./line.gp][line.gp]]
|
||||||
|
|
||||||
file:./line.png
|
file:./line.png
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ 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('format') && format eq 'terminal') set terminal dumb; set tics scale 0
|
||||||
if(exist('format') && format eq 'png') set terminal png transparent
|
if(exist('format') && format eq 'png') set terminal png transparent enhanced
|
||||||
if(exist('format') && format ne '') set terminal format
|
if(exist('format') && format ne '') set terminal format
|
||||||
if(exists("out")) set output out
|
if(exists("out")) set output out
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user