# matlab2tikz/matlab2tikz

This program converts MATLAB®/Octave figures to TikZ/pgfplots figures for smooth integration into LaTeX.

Repository: https://github.com/matlab2tikz/matlab2tikz
Canonical: https://ross.abutalabs.com/products/matlab2tikz
Homepage: http://www.mathworks.com/matlabcentral/fileexchange/22022-matlab2tikz
Language: MATLAB
License: BSD-2-Clause
License Family: permissive
Topics: matlab, tikz, pgfplots, octave, matlab2tikz, latex
Last push: 2026-05-31T18:16:01+00:00

## Health v2 (maintenance only)
Score: 61/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 85, release rhythm 8, longevity 100
- inputs: {"age_days": 6005, "days_push": 94, "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 1739, forks 333 (observed 2026-08-28T04:05:30.057124+00:00)

## What it is
matlab2tikz is a MATLAB/Octave script that converts native MATLAB figures into TikZ/pgfplots code for seamless inclusion in LaTeX documents. It supports most 2D and 3D plot types and outputs a .tex file ready to be included in a LaTeX project.

## Use cases
- convert MATLAB plots to TikZ for LaTeX papers
- export Octave figures as pgfplots code
- get vector-quality publication figures in LaTeX
- avoid rasterized screenshots in academic documents
- restyle MATLAB plots using LaTeX/TikZ formatting
- include 3D MATLAB plots in a thesis

## When to choose
- you write documents in LaTeX and need publication-quality vector figures from MATLAB or Octave
- you want plots that match your document's fonts and styling
- you need reproducible, text-based figure sources

## When to avoid
- you need to export figures to PNG/SVG or non-LaTeX formats
- your plots rely heavily on third-party MATLAB toolboxes with unsupported plot types
- you don't use LaTeX or TikZ

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

## Member repositories
- matlab2tikz/matlab2tikz (main) score 61

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:30.057124+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-30T03:30:13.489420+00:00, confidence not recorded.
  - readme: https://github.com/matlab2tikz/matlab2tikz (fetched 2026-08-28T04:05:30.057124+00:00, sha 2588383db302)
- Data as of 2026-08-30T08:39:29.467469+00:00.
