Skip to content

Instantly share code, notes, and snippets.

@ikarino
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ikarino/a22278835260e603385c to your computer and use it in GitHub Desktop.
Save ikarino/a22278835260e603385c to your computer and use it in GitHub Desktop.
System commands from gnuplot macro
#!/usr/local/bin/gnuplot
set term pngcairo
set output "sinx.png"
set xlabel "X" font "Helvetica, 30"
plot \
sin(x) lt 1 t'line type 1'
!open sinx.png
set term post enh color
set output "cosx.eps"
plot \
cos(x) lt 3 lc rgb "red" not
!convert cosx.eps -density 300 -rotate 90 cosx.png
!open cosx.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment