Skip to content

Instantly share code, notes, and snippets.

@thisMagpie
Created January 25, 2013 02:10
Show Gist options
  • Save thisMagpie/4631111 to your computer and use it in GitHub Desktop.
Save thisMagpie/4631111 to your computer and use it in GitHub Desktop.
This is a template based on my residuals data.
#!/bin/bash
gnuplot << TOEND
# Set the output file
set terminal postscript eps color enhanced
set output 'nfnResiduals.eps'
unset key
set title "Residuals against Current for N-Type No field"
set noborder
set xtics axis
set ytics axis
set format x "%2.1f"
set format y "%2.2f"
set xzeroaxis linestyle 2 lt 1 lc 0
set xlabel "Applied Current [mA]" offset 30.0
set yzeroaxis linestyle 2 lt 1 lc 0
set ylabel "Residuals" offset -3.0
set xrange [ -15.00 : 15.00 ]
set yrange [ -0.1 : 0.1 ]
plot'nfnResiduals.dat' using 1:2
TOEND
convert -density 100 nfnResiduals.eps nfnResiduals.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment