Generate beautiful plots for LaTeX using your existing matplotlib-based code.
Project description
========
LaTeXiPy
========
.. image:: https://img.shields.io/pypi/v/latexipy.svg
:target: https://pypi.python.org/pypi/latexipy
:alt: PyPI version
.. 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
.. image:: https://img.shields.io/badge/license-MIT-blue.svg
:target: https://github.com/masasin/latexipy
:alt: 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()``.
* Free software: MIT license
* Documentation: https://latexipy.readthedocs.io.
Usage
-----
.. code-block:: python
:caption: myfile.py
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()
.. image:: https://github.com/masasin/latexipy/raw/master/examples/img/sincos_defaults.png
.. code-block:: latex
:caption: mydoc.tex
\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_.
.. _examples: https://github.com/masasin/latexipy/tree/master/examples
.. _PDF: https://github.com/masasin/latexipy/raw/master/examples/example.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.
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage
=======
History
=======
0.1.0 (2017-08-24)
------------------
* First release on PyPI.
LaTeXiPy
========
.. image:: https://img.shields.io/pypi/v/latexipy.svg
:target: https://pypi.python.org/pypi/latexipy
:alt: PyPI version
.. 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
.. image:: https://img.shields.io/badge/license-MIT-blue.svg
:target: https://github.com/masasin/latexipy
:alt: 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()``.
* Free software: MIT license
* Documentation: https://latexipy.readthedocs.io.
Usage
-----
.. code-block:: python
:caption: myfile.py
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()
.. image:: https://github.com/masasin/latexipy/raw/master/examples/img/sincos_defaults.png
.. code-block:: latex
:caption: mydoc.tex
\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_.
.. _examples: https://github.com/masasin/latexipy/tree/master/examples
.. _PDF: https://github.com/masasin/latexipy/raw/master/examples/example.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.
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage
=======
History
=======
0.1.0 (2017-08-24)
------------------
* First release on PyPI.
Project details
Release history Release notifications | RSS feed
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.0.tar.gz
(650.8 kB
view hashes)
Built Distribution
Close
Hashes for latexipy-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02ae0e016b8445471ec203de93d4e23060a34a1744f20dd5c26c0797e4f6b361 |
|
MD5 | 594fcedace58bb01bfb3784ef3a0457f |
|
BLAKE2b-256 | 6eb842a2d1f30f972bdf5a2f9302abdcae0b68bdc03b151f625411c0a75f547a |