.. image:: https://img.shields.io/travis/masasin/latexipy.svg :target: https://travis-ci.org/masasin/latexipy :alt: Test status
.. image:: https://readthedocs.org/projects/latexipy/badge/?version=latest :target: https://latexipy.readthedocs.io/en/latest/?badge=latest :alt: Documentation Status
.. image:: https://pyup.io/repos/github/masasin/latexipy/shield.svg :target: https://pyup.io/repos/github/masasin/latexipy/ :alt: Updates
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
To plot in Python:
.. code-block:: 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()
To display in LaTeX:
.. code-block:: latex
See the examples directory for some example code, their resulting images, as well as an example LaTeX file and its output PDF.
This package was created with Cookiecutter and the
audreyr/cookiecutter-pypackage project template.