Skip to main content

Generate beautiful plots for LaTeX using your existing matplotlib-based code.

Project description


PyPI version Test status Documentation Status Updates MIT License

Generate beautiful plots for LaTeX using your existing Matplotlib-based code.

You can also use this package to generate plots without using LaTeX. Just don’t run lp.latexify().


To plot in Python:

import latexipy as lp

lp.latexify()  # Change to a serif font that fits with most LaTeX.

with lp.figure('filename'):  # saves in img/ by default.

To display in LaTeX:


See the examples directory for some example code, their resulting images, as well as an example LaTeX file and its output PDF.


  • Automatically generate multiple plot types, such as PDF, PNG, and PGF for LaTeX.

  • Works with all Matplotlib-based packages, including Seaborn and Pandas.

  • Allows for easily changing the style temporarily.


This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.


1.0.1 (2017-08-24)

  • Fix README rendering for Github and PyPI.

1.0.0 (2017-08-24)

  • First release on PyPI.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

latexipy-1.0.1.tar.gz (650.8 kB view hashes)

Uploaded source

Built Distribution

latexipy-1.0.1-py2.py3-none-any.whl (7.9 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page