
{"id":2080,"date":"2026-07-24T17:14:04","date_gmt":"2026-07-24T15:14:04","guid":{"rendered":"https:\/\/www.pcjv.de\/?page_id=2080"},"modified":"2026-07-24T17:14:12","modified_gmt":"2026-07-24T15:14:12","slug":"matplotlib-go","status":"publish","type":"page","link":"https:\/\/www.pcjv.de\/?page_id=2080","title":{"rendered":"matplotlib-go"},"content":{"rendered":"\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/CWBudde\/matplotlib-go\" target=\"_blank\" rel=\"noopener\">matplotlib-go<\/a> is a plotting library for Go inspired by Matplotlib: renderer-agnostic at the core, with high-quality raster backends today and vector\/GPU backends planned.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">A long-standing itch<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">It scratches an itch I have had since the measurement era &mdash; the <a href=\"\/?page_id=1496\">VST Plugin Analyser<\/a> exported stacked plots to PNG and SVG back in 2008, and I have wanted a proper, general plotting foundation ever since. The rendering layer underneath is <a href=\"\/?page_id=2079\">agg_go<\/a>, my Go port of Anti-Grain Geometry.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Examples<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">All plots below are rendered by matplotlib-go itself &mdash; and so is the <a href=\"https:\/\/cwbudde.github.io\/matplotlib-go\/\" target=\"_blank\" rel=\"noopener\">live browser gallery<\/a>, the same demo catalog compiled to WebAssembly:<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-2 wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" data-id=\"2054\" src=\"\/wordpress\/wp-content\/uploads\/matplotlib-go-lines-markers.png\" alt=\"Line styles, markers and legends rendered by matplotlib-go\" class=\"wp-image-2054\"\/><figcaption class=\"wp-element-caption\">Line styles, markers and legends<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" data-id=\"2055\" src=\"\/wordpress\/wp-content\/uploads\/matplotlib-go-bar-variants.png\" alt=\"Bar chart variants rendered by matplotlib-go\" class=\"wp-image-2055\"\/><figcaption class=\"wp-element-caption\">Bar chart variants<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" data-id=\"2056\" src=\"\/wordpress\/wp-content\/uploads\/matplotlib-go-contour-styles.png\" alt=\"Contour and filled contour styles rendered by matplotlib-go\" class=\"wp-image-2056\"\/><figcaption class=\"wp-element-caption\">Contour styles<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" data-id=\"2057\" src=\"\/wordpress\/wp-content\/uploads\/matplotlib-go-bar3d.png\" alt=\"3D bar chart rendered by matplotlib-go\" class=\"wp-image-2057\"\/><figcaption class=\"wp-element-caption\">3D bars (mplot3d)<\/figcaption><\/figure>\n<\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">The toolbox around it<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A plotting library pulls a surprising amount of machinery behind it, so matplotlib-go grew satellites: <a href=\"https:\/\/github.com\/CWBudde\/mathtext\" target=\"_blank\" rel=\"noopener\">mathtext<\/a> parses and lays out Matplotlib-style MathText expressions, <a href=\"https:\/\/github.com\/CWBudde\/qhull-go\" target=\"_blank\" rel=\"noopener\">qhull-go<\/a> is a pure-Go Delaunay triangulator reproducing Qhull&#8217;s connectivity, and <a href=\"https:\/\/github.com\/CWBudde\/Go-Clipper2\" target=\"_blank\" rel=\"noopener\">Go-Clipper2<\/a> handles polygon clipping. Its most satisfying deployment so far: rendering the charts of <a href=\"\/?page_id=2081\">hercules<\/a>. More background is <a href=\"\/?p=1979\">on the blog<\/a>.<\/p>\n\n\n","protected":false},"excerpt":{"rendered":"<p>matplotlib-go is a plotting library for Go inspired by Matplotlib: renderer-agnostic at the core, with high-quality raster backends today and vector\/GPU backends planned. A long-standing itch It scratches an itch I have had since the measurement era &mdash; the VST Plugin Analyser exported stacked plots to PNG and SVG back in 2008, and I have [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"parent":2075,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2080","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>matplotlib-go - Christian&#039;s private site<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.pcjv.de\/?page_id=2080\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.pcjv.de\\\/?page_id=2080\",\"url\":\"https:\\\/\\\/www.pcjv.de\\\/?page_id=2080\",\"name\":\"matplotlib-go - Christian&#039;s private site\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.pcjv.de\\\/#website\"},\"datePublished\":\"2026-07-24T15:14:04+00:00\",\"dateModified\":\"2026-07-24T15:14:12+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.pcjv.de\\\/?page_id=2080#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.pcjv.de\\\/?page_id=2080\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.pcjv.de\\\/?page_id=2080#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.pcjv.de\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Go Projects\",\"item\":\"https:\\\/\\\/www.pcjv.de\\\/?page_id=2075\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"matplotlib-go\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.pcjv.de\\\/#website\",\"url\":\"https:\\\/\\\/www.pcjv.de\\\/\",\"name\":\"Christian&#039;s private site\",\"description\":\"Private site of Christian-W. Budde\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.pcjv.de\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"matplotlib-go - Christian&#039;s private site","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.pcjv.de\/?page_id=2080","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.pcjv.de\/?page_id=2080","url":"https:\/\/www.pcjv.de\/?page_id=2080","name":"matplotlib-go - Christian&#039;s private site","isPartOf":{"@id":"https:\/\/www.pcjv.de\/#website"},"datePublished":"2026-07-24T15:14:04+00:00","dateModified":"2026-07-24T15:14:12+00:00","breadcrumb":{"@id":"https:\/\/www.pcjv.de\/?page_id=2080#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pcjv.de\/?page_id=2080"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.pcjv.de\/?page_id=2080#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.pcjv.de\/"},{"@type":"ListItem","position":2,"name":"Go Projects","item":"https:\/\/www.pcjv.de\/?page_id=2075"},{"@type":"ListItem","position":3,"name":"matplotlib-go"}]},{"@type":"WebSite","@id":"https:\/\/www.pcjv.de\/#website","url":"https:\/\/www.pcjv.de\/","name":"Christian&#039;s private site","description":"Private site of Christian-W. Budde","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.pcjv.de\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.pcjv.de\/index.php?rest_route=\/wp\/v2\/pages\/2080","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pcjv.de\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.pcjv.de\/index.php?rest_route=\/wp\/v2\/types\/page"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pcjv.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2080"}],"version-history":[{"count":1,"href":"https:\/\/www.pcjv.de\/index.php?rest_route=\/wp\/v2\/pages\/2080\/revisions"}],"predecessor-version":[{"id":2088,"href":"https:\/\/www.pcjv.de\/index.php?rest_route=\/wp\/v2\/pages\/2080\/revisions\/2088"}],"up":[{"embeddable":true,"href":"https:\/\/www.pcjv.de\/index.php?rest_route=\/wp\/v2\/pages\/2075"}],"wp:attachment":[{"href":"https:\/\/www.pcjv.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2080"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}