example usage

This commit is contained in:
2021-04-23 23:49:27 +02:00
parent 1d4a914a86
commit e96de47934
3 changed files with 15 additions and 1 deletions

View File

@@ -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)
![img](./line.png)

View File

@@ -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.png

View File

@@ -9,7 +9,7 @@ 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 '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(exists("out")) set output out