Skip to content

Instantly share code, notes, and snippets.

@icaoberg
Created May 3, 2021 02:41
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 icaoberg/31cef33c3f2d7400fc75e4547f5d41a0 to your computer and use it in GitHub Desktop.
Save icaoberg/31cef33c3f2d7400fc75e4547f5d41a0 to your computer and use it in GitHub Desktop.
GNUplot example script
set terminal pngcairo transparent enhanced font "arial,10" fontscale 1.0 size 600, 400
set output 'image.png'
set key outside right top vertical Right noreverse enhanced autotitle nobox
set title "plot with filledcurve [options]"
set xrange [ * : * ] noreverse writeback
set x2range [ * : * ] noreverse writeback
set yrange [ * : * ] noreverse writeback
set y2range [ * : * ] noreverse writeback
set zrange [ * : * ] noreverse writeback
set cbrange [ * : * ] noreverse writeback
set rrange [ * : * ] noreverse writeback
NO_ANIMATION = 1
plot [-10:10] [-5:3] 1.5+sin(x)/x with filledcurve x2, sin(x)/x with filledcurve, 1+sin(x)/x with lines, -1+sin(x)/x with filledcurve y1=-2, -2.5+sin(x)/x with filledcurve xy=-5,-4., -4.3+sin(x)/x with filledcurve x1, (x>3.5 ? x/3-3 : 1/0) with filledcurve y2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment