{"id":27423120,"url":"https://github.com/jarvist/gnuplot-snippets","last_synced_at":"2026-01-24T15:07:18.427Z","repository":{"id":150445971,"uuid":"119527277","full_name":"jarvist/gnuplot-snippets","owner":"jarvist","description":"Snippets for rendering ~publication quality figures in GNUPLOT.","archived":false,"fork":false,"pushed_at":"2018-02-01T15:59:07.000Z","size":7,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T10:52:29.841Z","etag":null,"topics":["figures","gnuplot","plotting","science"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jarvist.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-01-30T11:34:49.000Z","updated_at":"2022-06-08T02:01:44.000Z","dependencies_parsed_at":"2023-07-28T04:46:13.439Z","dependency_job_id":null,"html_url":"https://github.com/jarvist/gnuplot-snippets","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"b6ef8fcb621e98c643e7c459f1acfd8b18ee67d7"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jarvist/gnuplot-snippets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jarvist%2Fgnuplot-snippets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jarvist%2Fgnuplot-snippets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jarvist%2Fgnuplot-snippets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jarvist%2Fgnuplot-snippets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jarvist","download_url":"https://codeload.github.com/jarvist/gnuplot-snippets/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jarvist%2Fgnuplot-snippets/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28730309,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T10:24:43.181Z","status":"ssl_error","status_checked_at":"2026-01-24T10:24:36.112Z","response_time":89,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["figures","gnuplot","plotting","science"],"created_at":"2025-04-14T10:44:50.222Z","updated_at":"2026-01-24T15:07:18.412Z","avatar_url":"https://github.com/jarvist.png","language":null,"readme":"# gnuplot-snippets\nSnippets for rendering ~publication quality figures in GNUPLOT.\n\n## Why gnuplot in 2018?\n\nI know, I know. All the cool kids use Matplotlib. Gnuplot is old, cranky, and ugly by default. The thing is, I was a cool kid once. \n\nI've wrestled repeatedly with Matplotlib magics to make a publication quality figure; I've returned to ~6 month old scripts to find them rendering very differently; sometimes the low performance is an actual problem. So I have returned to gnuplot as my main plotter.\n\nIn this repository I will try and collate / collect my useful bits and bobs for plotting with gnuplot.\n\n### 'gnuplot-render.gpt' \n\nThis is a 'function in a file' (bit of a hack, but it works). \nThe idea is to simultaneously output acceptable figures for talks + ~Physical Review style figures. Because gnuplot is so efficient, it will happily push out a load of figures in under a second.\n\n```\n                    1 +----------------------------------------------------+\n                      |=@%$ +     +     +     +    +     +     +     +     |\n                  0.8 |-=@@%                                             +-|\n                      |  = @B                                              |\n                  0.6 |-+ = D$                            F              +-|\n                      |    =A%B*              F           D                |\n                  0.4 |-+   B\u0026D%A#F           D           D     B        +-|\n                      |      =F@D%D#          A           AB    D$   F   B |\n                  0.2 |-+     B=A\u0026F%         %@          #@DD   A%   D F D-|\n                      |         B=BF$    B   @@    B DDA %@AA   @A  AABADA |\n                      |            BB==F B$  =BAA  AAFFA@ABBB FBBBFFFBFBFFF|\n                    0 |-+              BB%BBB@BBBBBBBBBBBBB BBBBBBBBBBBBBBB|\n                      |                 D @A@$D#@@F@  A A    A D  D   @AAAD|\n                 -0.2 |-+                 @@A   A%@A  B      D        @D F-|\n                      |                   A$B   D$@@         F        A    |\n                 -0.4 |-+                 D     F A%                  D  +-|\n                      |                   B       D#                  B    |\n                 -0.6 |-+                         B                      +-|\n                      |     +     +     +     +   F+     +     +     +     |\n                 -0.8 +----------------------------------------------------+\n                      0     1     2     3     4    5     6     7     8     9\n                                    Distance (lattice units)\n```\nIt defaults to using the `dumb` terminal, so you can see what's going on in the shell. You set a `prefix` variable for the filename, `load gnuplot-render.gpt` and it will replot to PDF and PNG terminals. \nAs every figure is always slightly unique, I now download a fresh copy of this to whichever REPO I am doing data analysis in, and then customise it further there.\n\n## Gnuplot resources\n\nA very useful resource for modern (less ugly) gnuplot is http://www.gnuplotting.org/ \u0026 associated Github repos https://github.com/Gnuplotting.\n\nThe best book resource is definitely https://www.manning.com/books/gnuplot-in-action-second-edition .\n\n## Other Jarv Gnuplot bits\n\n(This is mainly a reference for myself.)\n\n### Phonons: \nBand structure: https://github.com/WMD-group/Phonons/blob/master/2016_MAPbX3-CompleteAssignment/Theory/band.gpt \npDoS (decomposed + coloured): https://github.com/WMD-group/Phonons/blob/master/2016_MAPbX3-CompleteAssignment/Theory/phonon_pDoS_Eigenmodes.gpt\n\nPhonon eigenmode energy decomposition: https://github.com/jarvist/Julia-Phonons/blob/master/plot-mode-decomposition/MAPI_mode.gpt\n\nCrossing zero / autocorrelation function: https://github.com/jarvist/MAPI-MD-analysis/blob/master/timetocrosszero.gpt ; plot: https://github.com/jarvist/MAPI-MD-analysis/blob/master/300K_FAPI_correlation.png\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjarvist%2Fgnuplot-snippets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjarvist%2Fgnuplot-snippets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjarvist%2Fgnuplot-snippets/lists"}