@@ -26,10 +26,9 @@ figures like
26
26
27
27
for native inclusion into LaTeX or ConTeXt documents.
28
28
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
33
32
34
33
- retains more information,
35
34
- can be more easily understood, and
@@ -58,14 +57,17 @@ import tikzplotlib
58
57
59
58
tikzplotlib.save(" test.tex" )
60
59
```
60
+
61
61
<!-- close the figure and reset defaults
62
62
<!--pytest-codeblocks:cont-->
63
+
63
64
``` python
64
65
import matplotlib as mpl
65
66
66
67
plt.close()
67
68
mpl.rcParams.update(mpl.rcParamsDefault)
68
69
```
70
+
69
71
-->
70
72
(see above) gives
71
73
@@ -147,8 +149,8 @@ to install.
147
149
148
150
to store the TikZ file as `mytikz.tex` .
149
151
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
152
154
153
155
```latex
154
156
\input{/path/to/mytikz.tex}
@@ -189,7 +191,8 @@ to install.
189
191
tikzplotlib.Flavors.context.preamble()
190
192
```
191
193
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.
193
196
194
197
```python
195
198
import matplotlib.pyplot as plt
@@ -212,16 +215,16 @@ to install.
212
215
213
216
# ## Contributing
214
217
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).
218
221
219
222
# ## Testing
220
223
221
224
tikzplotlib has automatic unit testing to make sure that the software doesn' t
222
225
accidentally 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 .
225
228
226
229
To run the tests, just check out this repository and type
227
230
@@ -231,4 +234,5 @@ pytest
231
234
232
235
# ## License
233
236
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