{"id":15716410,"url":"https://github.com/laurentrdc/pandoc-plot","last_synced_at":"2025-04-07T23:13:47.926Z","repository":{"id":40364183,"uuid":"220686038","full_name":"LaurentRDC/pandoc-plot","owner":"LaurentRDC","description":"Render and include figures in Pandoc documents using your plotting toolkit of choice","archived":false,"fork":false,"pushed_at":"2024-09-27T18:35:32.000Z","size":2362,"stargazers_count":226,"open_issues_count":8,"forks_count":8,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-10-25T04:24:57.895Z","etag":null,"topics":["ggplot2","gnuplot","mathematica","matlab","matplotlib","octave","pandoc","pandoc-filter","pandoc-filters","plantuml","plotly","plotly-python","plotting","plotting-toolkits"],"latest_commit_sha":null,"homepage":"https://laurentrdc.github.io/pandoc-plot/","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LaurentRDC.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"LaurentRDC","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2019-11-09T18:32:42.000Z","updated_at":"2024-10-18T23:23:36.000Z","dependencies_parsed_at":"2023-12-16T14:02:32.671Z","dependency_job_id":"54bb637b-c8ca-4b9d-9340-d96452e84411","html_url":"https://github.com/LaurentRDC/pandoc-plot","commit_stats":{"total_commits":864,"total_committers":5,"mean_commits":172.8,"dds":0.09375,"last_synced_commit":"08994b92a0a3e6dcb2a2135cc62879dc7a566bce"},"previous_names":[],"tags_count":45,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaurentRDC%2Fpandoc-plot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaurentRDC%2Fpandoc-plot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaurentRDC%2Fpandoc-plot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaurentRDC%2Fpandoc-plot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LaurentRDC","download_url":"https://codeload.github.com/LaurentRDC/pandoc-plot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247744333,"owners_count":20988783,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["ggplot2","gnuplot","mathematica","matlab","matplotlib","octave","pandoc","pandoc-filter","pandoc-filters","plantuml","plotly","plotly-python","plotting","plotting-toolkits"],"created_at":"2024-10-03T21:45:31.545Z","updated_at":"2025-04-07T23:13:47.894Z","avatar_url":"https://github.com/LaurentRDC.png","language":"Haskell","readme":"# pandoc-plot \n\n## A Pandoc filter to generate figures from code blocks in documents\n\n[![license](https://img.shields.io/badge/license-GPLv2+-lightgray.svg)](https://www.gnu.org/licenses/gpl.html) \n\n`pandoc-plot` turns code blocks present in your documents (Markdown, LaTeX, etc.) into embedded figures, using your plotting toolkit of choice, including Matplotlib, ggplot2, MATLAB, Mathematica, and more.\n\n## Overview\n\nThis program is a [Pandoc](https://pandoc.org/) filter. It can therefore\nbe used in the middle of conversion from input format to output format,\nreplacing code blocks with figures.\n\nThe filter recognizes code blocks with classes that match plotting\ntoolkits. For example, using the `matplotlib` toolkit:\n\n```` markdown\n# My document\n\nThis is a paragraph.\n\n```{.matplotlib}\nimport matplotlib.pyplot as plt\n\nplt.figure()\nplt.plot([0,1,2,3,4], [1,2,3,4,5])\nplt.title('This is an example figure')\n```\n````\n\nPutting the above in `input.md`, we can then generate the plot and embed\nit in an HTML page:\n\n``` bash\npandoc --filter pandoc-plot input.md --output output.html\n```\n\nThe resulting `output.html` looks like this:\n\n```html\n\u003ch1 id=\"my-document\"\u003eMy document\u003c/h1\u003e\n\n\u003cp\u003eThis is a paragraph.\u003c/p\u003e\n\n\u003cfigure\u003e\n\u003cimg src=\"plots\\9671478262050082276.png\" /\u003e\n\u003c/figure\u003e\n```\n\n## Supported toolkits\n\n`pandoc-plot` currently supports the following plotting toolkits\n(**installed separately**):\n\n  - `matplotlib`: plots using the [matplotlib](https://matplotlib.org/)\n    Python library;\n  - `plotly_python` : plots using the\n    [plotly](https://plotly.com/python/) Python library;\n  - `plotly_r`: plots using the [plotly](https://plotly.com/r/) R\n    library\n  - `matlabplot`: plots using [MATLAB](https://www.mathworks.com/);\n  - `mathplot` : plots using\n    [Mathematica](https://www.wolfram.com/mathematica/);\n  - `octaveplot`: plots using [GNU\n    Octave](https://www.gnu.org/software/octave/);\n  - `ggplot2`: plots using [ggplot2](https://ggplot2.tidyverse.org/);\n  - `gnuplot`: plots using [gnuplot](http://www.gnuplot.info/);\n  - `graphviz`: graphs using [Graphviz](http://graphviz.org/);\n  - `bokeh`: plots using the [Bokeh](https://bokeh.org/) visualization library;\n  - `plotsjl`: plots using the [Julia `Plots.jl`](https://docs.juliaplots.org/latest/) package;\n  - `plantuml`: diagrams using the [PlantUML](https://plantuml.com/) software suite;\n  - `sageplot`: plots using the [Sage](https://www.sagemath.org/) software system;\n  - `d2`: plots using [D2](https://d2lang.com/);\n  - `asymptote`: plots using [Asymptote](https://asymptote.sourceforge.io/).\n\nTo know which toolkits are useable on *your machine* (and which ones are\nnot available), you can check with the `toolkits` command:\n\n``` bash\npandoc-plot toolkits\n```\n\n**Wish your plotting toolkit of choice was available? Please [raise an\nissue](https://github.com/LaurentRDC/pandoc-plot/issues)\\!**\n\n## Documentation\n\nYou can find more information in the documentation, available either in the\nsource repository file `MANUAL.md`, on the [webpage](https://laurentrdc.github.io/pandoc-plot/MANUAL.html), or via the command `pandoc-plot --manual`.\n\n## Installation\n\n### Binaries and Installers\n\n[![Latest release](https://img.shields.io/github/v/release/LaurentRDC/pandoc-plot)](https://github.com/LaurentRDC/pandoc-plot/releases)\n\nWindows, Linux, and Mac OS binaries are available on the [GitHub release\npage](https://github.com/LaurentRDC/pandoc-plot/releases). There are\nalso Windows installers.\n\n### conda\n\n[![Conda Version](https://anaconda.org/conda-forge/pandoc-plot/badges/version.svg)](https://anaconda.org/conda-forge/pandoc-plot)\n\nLike `pandoc`, `pandoc-plot` is available as a package installable with\n[`conda`](https://docs.conda.io/en/latest/). [Click here to see the\npackage page](https://anaconda.org/conda-forge/pandoc-plot).\n\nTo install in the current environment:\n\n``` sh\nconda install -c conda-forge pandoc-plot\n```\n\n### Homebrew \n\n[![homebrew version](https://img.shields.io/homebrew/v/pandoc-plot)](https://formulae.brew.sh/formula/pandoc-plot)\n\n`pandoc-plot` is available as a package via [`Homebrew`](https://brew.sh/). [Click here to see the package page](https://formulae.brew.sh/formula/pandoc-plot#default). \n\nTo install:\n\n```sh\nbrew install pandoc-plot\n```\n\n### winget\n\nYou can install `pandoc-plot` from the [Windows Package\nManager](https://github.com/microsoft/winget-cli) `winget` (just like\n`pandoc`). To install:\n\n``` sh\nwinget install pandoc-plot\n```\n### From Hackage/Stackage\n\n[![Hackage version](https://img.shields.io/hackage/v/pandoc-plot.svg)](http://hackage.haskell.org/package/pandoc-plot)\n\n`pandoc-plot` is available on\n[Hackage](http://hackage.haskell.org/package/pandoc-plot) and\n[Stackage](https://www.stackage.org/nightly/package/pandoc-plot). Using\nthe [`cabal-install`](https://www.haskell.org/cabal/) tool:\n\n``` bash\ncabal update\ncabal install\n```\n\n### From source\n\nBuilding from source can be done using [`cabal`](https://www.haskell.org/cabal/):\n\n``` bash\ngit clone https://github.com/LaurentRDC/pandoc-plot\ncd pandoc-plot\ncabal install # Alternatively, `stack install`\n```\n","funding_links":["https://github.com/sponsors/LaurentRDC"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaurentrdc%2Fpandoc-plot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaurentrdc%2Fpandoc-plot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaurentrdc%2Fpandoc-plot/lists"}