Skip to content

Commit 83b5ebf

Browse files
committed
readme update
1 parent 48e5456 commit 83b5ebf

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,15 @@ import tikzplotlib
5757

5858
tikzplotlib.save("test.tex")
5959
```
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+
-->
6069
(see above) gives
6170
```latex
6271
\begin{tikzpicture}
@@ -179,9 +188,12 @@ to install.
179188
tikzplotlib.clean_figure()
180189
tikzplotlib.save("test.tex")
181190
```
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.
183193

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.
185197

186198
### Contributing
187199

0 commit comments

Comments
 (0)