Skip to content

Instantly share code, notes, and snippets.

@larsgroeber
Last active October 15, 2016 16:40
Show Gist options
  • Save larsgroeber/86e0a8f678037039d37fbb235fcd62d2 to your computer and use it in GitHub Desktop.
Save larsgroeber/86e0a8f678037039d37fbb235fcd62d2 to your computer and use it in GitHub Desktop.
Small sample gnuplot file for plotting a sine-curve
#! /bin/gnuplot
# small sample script to be extended for any project
set terminal wxt size 350,262 enhanced font 'Verdana,10' persist
# Line width of the axes
set border linewidth 1.5
# Line styles
set style line 1 linecolor rgb '#0060ad' linetype 1 linewidth 2
set style line 2 linecolor rgb '#dd181f' linetype 1 linewidth 2
set title "test.dat"
set xlabel "x"
set ylabel "y"
#set autoscale
set xrange [-2*pi:2*pi]
set yrange [-1.5:1.5]
set xtics ('-2π' -2*pi, '-π' -pi, 0, 'π' pi, '2π' 2*pi)
set ytics 1
set tics scale 0.75
set key below center
# set label "test" at 1,2 center
plot sin(x) title "sin(x)" with lines ls 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment