@@ -26,10 +26,9 @@ figures like
2626
2727for native inclusion into LaTeX or ConTeXt documents.
2828
29- The output of tikzplotlib is in
30- [ PGFPlots] ( https://github.com/pgf-tikz/pgfplots/ ) , a TeX library that sits on
31- top of [ PGF/TikZ] ( https://en.wikipedia.org/wiki/PGF/TikZ ) and describes graphs in terms
32- of axes, data etc. Consequently, the output of tikzplotlib
29+ The output of tikzplotlib is in [ PGFPlots] ( https://github.com/pgf-tikz/pgfplots/ ) , a TeX
30+ library that sits on top of [ PGF/TikZ] ( https://en.wikipedia.org/wiki/PGF/TikZ ) and
31+ describes graphs in terms of axes, data etc. Consequently, the output of tikzplotlib
3332
3433- retains more information,
3534- can be more easily understood, and
@@ -58,14 +57,17 @@ import tikzplotlib
5857
5958tikzplotlib.save(" test.tex" )
6059```
60+
6161<!-- close the figure and reset defaults
6262<!--pytest-codeblocks:cont-->
63+
6364``` python
6465import matplotlib as mpl
6566
6667plt.close()
6768mpl.rcParams.update(mpl.rcParamsDefault)
6869```
70+
6971-->
7072(see above) gives
7173
@@ -147,8 +149,8 @@ to install.
147149
148150 to store the TikZ file as `mytikz.tex` .
149151
150- 3 . Add the contents of `mytikz.tex` into your TeX source code. A convenient way of
151- doing so is via
152+ 3 . Add the contents of `mytikz.tex` into your TeX source code. A convenient way of doing
153+ so is via
152154
153155 ```latex
154156 \input{/path/to/mytikz.tex}
@@ -189,7 +191,8 @@ to install.
189191 tikzplotlib.Flavors.context.preamble()
190192 ```
191193
192- 4 . Optional: clean up the figure before exporting to tikz using the `clean_figure` command.
194+ 4 . [Optional] Clean up the figure before exporting to tikz using the `clean_figure`
195+ command.
193196
194197 ```python
195198 import matplotlib.pyplot as plt
@@ -212,16 +215,16 @@ to install.
212215
213216# ## Contributing
214217
215- If you experience bugs, would like to contribute, have nice examples of what
216- tikzplotlib can do, or if you are just looking for more information, then please
217- visit [tikzplotlib' s GitHub page](https://github.com/nschloe/tikzplotlib).
218+ If you experience bugs, would like to contribute, have nice examples of what tikzplotlib
219+ can do, or if you are just looking for more information, then please visit
220+ [tikzplotlib' s GitHub page](https://github.com/nschloe/tikzplotlib).
218221
219222# ## Testing
220223
221224tikzplotlib has automatic unit testing to make sure that the software doesn' t
222225accidentally get worse over time. In `test/ ` , a number of test cases are specified.
223- Those run through tikzplotlib and compare the output with a previously stored
224- reference TeX file .
226+ Those run through tikzplotlib and compare the output with a previously stored reference
227+ TeX file .
225228
226229To run the tests, just check out this repository and type
227230
@@ -231,4 +234,5 @@ pytest
231234
232235# ## License
233236
234- tikzplotlib is published under the [MIT license ](https:// en.wikipedia.org/ wiki/ MIT_License ).
237+ tikzplotlib is published under the [MIT
238+ license ](https:// en.wikipedia.org/ wiki/ MIT_License ).
0 commit comments