Created
January 29, 2021 13:34
-
-
Save wader/4cfc22392658161187303579f22966b6 to your computer and use it in GitHub Desktop.
gnuplot inline
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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