Skip to content

Instantly share code, notes, and snippets.

@ikarino ikarino/system.gp
Last active Aug 29, 2015

Embed
What would you like to do?
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
You can’t perform that action at this time.