Skip to main content

LaTeXiPy

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().

Usage

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.
    draw_the_plot()
https://github.com/masasin/latexipy/raw/master/examples/img/sincos_defaults.png

To display in LaTeX:

\usepackage{pgf}
\input{filename.pgf}

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

Features

  • 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.

Credits

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

History

1.0.1 (2017-08-24)

  • Fix README rendering for Github and PyPI.

1.0.0 (2017-08-24)

  • First release on PyPI.

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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 2Python 3

File details

Details for the file latexipy-1.0.1.tar.gz.

File metadata

  • Download URL: latexipy-1.0.1.tar.gz
  • Upload date:
  • Size: 650.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for latexipy-1.0.1.tar.gz
Algorithm Hash digest
SHA256 e965c770425918fd7b5f8b70d5e3c5976116e02c137b23a92d986d5d8d93c868
MD5 5c872a9a0317bdfc0f4deba430a4f882
BLAKE2b-256 306a7b670cedc83f72bedba9b4c3fbd1b22d8cd7ca3b60af608c03fd65cad5a7

See more details on using hashes here.

File details

Details for the file latexipy-1.0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for latexipy-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 894d38c1358b7d4a050174fdbc96cdc88bc4ea8e3d40ae4b78e748ff775aed80
MD5 b248d57e22121732acef358f4e024d5f
BLAKE2b-256 10d3ce8090c47e60a5420976f8af764bf2e0f9b9674788073a5c1b209fdf3995

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 files

1.0.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page