Skip to content

Instantly share code, notes, and snippets.

@wader
Created January 29, 2021 13:34
Show Gist options
  • Save wader/4cfc22392658161187303579f22966b6 to your computer and use it in GitHub Desktop.
Save wader/4cfc22392658161187303579f22966b6 to your computer and use it in GitHub Desktop.
gnuplot inline
# gnuplot < file.plot > file.svg
$data << EOD
# index 0
1 2
2 2
3 3
# two blank new index 1
4 1
6 6
# one blank discontinuous
7 7
8 7
EOD
set style line 1 \
linecolor rgb '#0060ad' \
linetype 1 linewidth 2 \
pointtype 7 pointsize 1
set style line 2 \
linecolor rgb '#dd181f' \
linetype 1 linewidth 2 \
pointtype 5 pointsize 1
set terminal svg size 1000,300 dynamic mouse standalone rounded
set title 'Name of plot'
plot \
$data index 0 title 'Line 1' with linespoints linestyle 1, \
$data index 1 title 'Line 2' with linespoints linestyle 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment