File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,15 @@ import tikzplotlib
57
57
58
58
tikzplotlib.save(" test.tex" )
59
59
```
60
+ <!-- close the figure and reset defaults
61
+ <!--pytest-codeblocks:cont-->
62
+ ``` python
63
+ import matplotlib as mpl
64
+
65
+ plt.close()
66
+ mpl.rcParams.update(mpl.rcParamsDefault)
67
+ ```
68
+ -->
60
69
(see above) gives
61
70
``` latex
62
71
\begin{tikzpicture}
@@ -179,9 +188,12 @@ to install.
179
188
tikzplotlib.clean_figure()
180
189
tikzplotlib.save(" test.tex" )
181
190
```
182
- The command will remove points that are outside the axes limits, simplify curves and reduce point density for the specified target resolution.
191
+ The command will remove points that are outside the axes limits, simplify curves and
192
+ reduce point density for the specified target resolution.
183
193
184
- The feature originated from the [matlab2tikz](https:// github.com/ matlab2tikz/ matlab2tikz) project and is adapted to matplotlib.
194
+ The feature originated from the
195
+ [matlab2tikz](https:// github.com/ matlab2tikz/ matlab2tikz) project and is adapted to
196
+ matplotlib.
185
197
186
198
# ## Contributing
187
199
You can’t perform that action at this time.
0 commit comments