1- # matplotlib2tikz
2-
3- [ ![ CircleCI] ( https://img.shields.io/circleci/project/github/nschloe/matplotlib2tikz/master.svg )] ( https://circleci.com/gh/nschloe/matplotlib2tikz/tree/master )
4- [ ![ codecov] ( https://img.shields.io/codecov/c/github/nschloe/matplotlib2tikz.svg )] ( https://codecov.io/gh/nschloe/matplotlib2tikz )
5- [ ![ Code style: black] ( https://img.shields.io/badge/code%20style-black-000000.svg )] ( https://github.com/ambv/black )
6- [ ![ Documentation Status] ( https://readthedocs.org/projects/matplotlib2tikz/badge/?version=latest )] ( https://readthedocs.org/projects/matplotlib2tikz/?badge=latest )
7- [ ![ awesome] ( https://img.shields.io/badge/awesome-yes-brightgreen.svg )] ( https://github.com/nschloe/matplotlib2tikz )
8- [ ![ PyPi Version] ( https://img.shields.io/pypi/v/matplotlib2tikz.svg )] ( https://pypi.org/project/matplotlib2tikz )
9- [ ![ DOI] ( https://zenodo.org/badge/DOI/10.5281/zenodo.1173089.svg )] ( https://doi.org/10.5281/zenodo.1173089 )
10- [ ![ GitHub stars] ( https://img.shields.io/github/stars/nschloe/matplotlib2tikz.svg?logo=github&label=Stars&logoColor=white )] ( https://github.com/nschloe/matplotlib2tikz )
11- [ ![ PyPi downloads] ( https://img.shields.io/pypi/dd/matplotlib2tikz.svg )] ( https://pypistats.org/packages/matplotlib2tikz )
12-
13- This is matplotlib2tikz, a Python tool for converting matplotlib figures into
1+ <p align =" center " >
2+ <img alt =" tikzplotlib " src =" https://nschloe.github.io/tikzplotlib/logo-tikzplotlib.svg " width =" 60% " >
3+ </p >
4+
5+ [ ![ CircleCI] ( https://img.shields.io/circleci/project/github/nschloe/tikzplotlib/master.svg?style=flat-square )] ( https://circleci.com/gh/nschloe/tikzplotlib/tree/master )
6+ [ ![ codecov] ( https://img.shields.io/codecov/c/github/nschloe/tikzplotlib.svg?style=flat-square )] ( https://codecov.io/gh/nschloe/tikzplotlib )
7+ [ ![ Code style: black] ( https://img.shields.io/badge/code%20style-black-000000.svg?style=flat-square )] ( https://github.com/ambv/black )
8+ [ ![ Documentation Status] ( https://readthedocs.org/projects/tikzplotlib/badge/?version=latest&style=flat-square )] ( https://readthedocs.org/projects/tikzplotlib/?badge=latest )
9+ [ ![ awesome] ( https://img.shields.io/badge/awesome-yes-brightgreen.svg?style=flat-square )] ( https://github.com/nschloe/tikzplotlib )
10+ [ ![ PyPi Version] ( https://img.shields.io/pypi/v/tikzplotlib.svg?style=flat-square )] ( https://pypi.org/project/tikzplotlib )
11+ [ ![ DOI] ( https://zenodo.org/badge/DOI/10.5281/zenodo.1173089.svg?style=flat-square )] ( https://doi.org/10.5281/zenodo.1173089 )
12+ [ ![ GitHub stars] ( https://img.shields.io/github/stars/nschloe/tikzplotlib.svg?style=flat-square&logo=github&label=Stars&logoColor=white )] ( https://github.com/nschloe/tikzplotlib )
13+ [ ![ PyPi downloads] ( https://img.shields.io/pypi/dd/tikzplotlib.svg?style=flat-square )] ( https://pypistats.org/packages/tikzplotlib )
14+
15+ This is tikzplotlib, a Python tool for converting matplotlib figures into
1416[ PGFPlots] ( https://www.ctan.org/pkg/pgfplots ) ([ PGF/TikZ] ( https://www.ctan.org/pkg/pgf ) )
1517figures like
1618
17- ![ ] ( https://nschloe.github.io/matplotlib2tikz /example.png )
19+ ![ ] ( https://nschloe.github.io/tikzplotlib /example.png )
1820
1921for native inclusion into LaTeX documents.
2022
21- The output of matplotlib2tikz is in
23+ The output of tikzplotlib is in
2224[ PGFPlots] ( http://pgfplots.sourceforge.net/pgfplots.pdf ) , a LaTeX library that sits on
2325top of [ PGF/TikZ] ( https://en.wikipedia.org/wiki/PGF/TikZ ) and describes graphs in terms
24- of axes, data etc. Consequently, the output of matplotlib2tikz
26+ of axes, data etc. Consequently, the output of tikzplotlib
2527
2628 * retains more information,
2729 * can be more easily understood, and
@@ -45,9 +47,9 @@ plt.ylabel("Voltage (mV)")
4547plt.title("Simple plot $\\frac{\\alpha}{2}$")
4648plt.grid(True)
4749
48- import matplotlib2tikz
50+ import tikzplotlib
4951
50- matplotlib2tikz .save("test.tex")
52+ tikzplotlib .save("test.tex")
5153```
5254(see above) gives
5355``` latex
@@ -100,10 +102,10 @@ Notably, [3D plots don't work](https://github.com/matplotlib/matplotlib/issues/7
100102
101103### Installation
102104
103- matplotlib2tikz is [ available from the Python Package
104- Index] ( https://pypi.org/project/matplotlib2tikz / ) , so simply type
105+ tikzplotlib is [ available from the Python Package
106+ Index] ( https://pypi.org/project/tikzplotlib / ) , so simply type
105107```
106- pip3 install matplotlib2tikz --user
108+ pip3 install tikzplotlib --user
107109```
108110to install/update.
109111
@@ -112,10 +114,10 @@ to install/update.
112114
1131151 . Generate your matplotlib plot as usual.
114116
115- 2 . Instead of ` pyplot.show() ` , invoke matplotlib2tikz by
117+ 2 . Instead of ` pyplot.show() ` , invoke tikzplotlib by
116118 ``` python
117- import matplotlib2tikz
118- matplotlib2tikz .save(" mytikz.tex" )
119+ import tikzplotlib
120+ tikzplotlib .save(" mytikz.tex" )
119121 ```
120122 to store the TikZ file as `mytikz.tex` .
121123
@@ -138,15 +140,15 @@ to install/update.
138140# ## Contributing
139141
140142If you experience bugs, would like to contribute, have nice examples of what
141- matplotlib2tikz can do, or if you are just looking for more information, then please
142- visit [matplotlib2tikz ' s GitHub page](https://github.com/nschloe/matplotlib2tikz ).
143+ tikzplotlib can do, or if you are just looking for more information, then please
144+ visit [tikzplotlib ' s GitHub page](https://github.com/nschloe/tikzplotlib ).
143145
144146
145147# ## Testing
146148
147- matplotlib2tikz has automatic unit testing to make sure that the software doesn' t
149+ tikzplotlib has automatic unit testing to make sure that the software doesn' t
148150accidentally get worse over time. In `test/ ` , a number of test cases are specified.
149- Those run through matplotlib2tikz and compare the output with a previously stored
151+ Those run through tikzplotlib and compare the output with a previously stored
150152reference TeX file .
151153
152154To run the tests, just check out this repository and type
@@ -156,4 +158,4 @@ pytest
156158
157159# ## License
158160
159- matplotlib2tikz is published under the [MIT license ](https:// en.wikipedia.org/ wiki/ MIT_License ).
161+ tikzplotlib is published under the [MIT license ](https:// en.wikipedia.org/ wiki/ MIT_License ).
0 commit comments