# nschloe/tikzplotlib

:bar_chart: Save matplotlib figures as TikZ/PGFplots for smooth integration into LaTeX.

Repository: https://github.com/nschloe/tikzplotlib
Canonical: https://ross.abutalabs.com/products/tikzplotlib
Language: Python
License: MIT
License Family: permissive
Topics: python, tikz, matplotlib, pgfplots, latex
Last push: 2024-08-16T05:00:45+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 6075, "days_push": 747, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2580, forks 248 (observed 2026-08-28T04:07:02.412534+00:00)

## What it is
A Python library that converts matplotlib figures into TikZ/PGFPlots code for native inclusion in LaTeX or ConTeXt documents. It preserves axes and data information so the resulting plots remain editable within TeX.

## Use cases
- export matplotlib plots as tikz code for latex papers
- convert python figures to pgfplots
- make publication-quality figures in latex from matplotlib
- edit matplotlib charts inside latex documents
- include python-generated plots in a thesis
- get vector tikz output instead of pdf images

## When to choose
- you write documents in LaTeX and want plots that match the document fonts and are editable
- you need semantic PGFPlots output rather than raw TikZ paths or raster images
- your workflow is matplotlib-based and you want a one-call figure export

## When to avoid
- you need interactive or web-based plotting
- your figures use matplotlib features that tikzplotlib cannot translate and you don't want to fix them up
- you target HTML or Markdown output rather than TeX
- you need a project under heavy active development

## Facets
- artifact type: library
- maturity: maintenance
- function: data-visualization, graphics
- domain: data-visualization, documentation, developer-tools
- platform: python, cross-platform
- tags: matplotlib, tikz, pgfplots, latex, figure-export

## Member repositories
- nschloe/tikzplotlib (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:02.412534+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:22:39.173724+00:00, confidence not recorded.
  - readme: https://github.com/nschloe/tikzplotlib (fetched 2026-08-28T04:07:02.412534+00:00, sha 1f4c682b4e2f)
  - registry_pypi: https://pypi.org/pypi/tikzplotlib/json (fetched 2026-08-29T10:05:07.155986+00:00, sha 46e7320ab762)
- Data as of 2026-08-30T08:39:29.467469+00:00.
