Skip to content

Commit 6565e83

Browse files
committed
more readme tweaks
1 parent fc5f5f2 commit 6565e83

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The output of matplotlib2tikz is in
2121
[PGFPlots](http://pgfplots.sourceforge.net/pgfplots.pdf), a LaTeX library that
2222
sits on top of TikZ and describes graphs in terms of axes, data etc.
2323
Consequently, the output of matplotlib2tikz retains more information, can be
24-
more easily understood, and is more easily editable than [raw TikZ output](http://matplotlib.org/users/whats_new.html#pgf-tikz-backend).
24+
more easily understood, and is more easily editable than [raw TikZ output](https://matplotlib.org/users/whats_new.html#pgf-tikz-backend).
2525
For example, the matplotlib figure
2626
```python,test
2727
import matplotlib.pyplot as plt
@@ -34,7 +34,7 @@ s = np.sin(2*np.pi*t)
3434
s2 = np.cos(2*np.pi*t)
3535
plt.plot(t, s, 'o-', lw=4.1)
3636
plt.plot(t, s2, 'o-', lw=4.1)
37-
plt.xlabel('time(s)')
37+
plt.xlabel('time (s)')
3838
plt.ylabel('Voltage (mV)')
3939
plt.title('Simple plot $\\frac{\\alpha}{2}$')
4040
plt.grid(True)
@@ -52,7 +52,7 @@ tikz_save('test.tex')
5252
5353
\begin{axis}[
5454
title={Simple plot $\frac{\alpha}{2}$},
55-
xlabel={time(s)},
55+
xlabel={time (s)},
5656
ylabel={Voltage (mV)},
5757
xmin=-0.095, xmax=1.995,
5858
ymin=-1.1, ymax=1.1,
@@ -105,7 +105,7 @@ to install/update.
105105

106106
2. Instead of `pyplot.show()`, invoke matplotlib2tikz by
107107
```python
108-
tikz_save('mytikz.tex');
108+
tikz_save('mytikz.tex')
109109
```
110110
to store the TikZ file as `mytikz.tex`. Load the library with:
111111
```python
@@ -124,8 +124,8 @@ to install/update.
124124
```python
125125
tikz_save(
126126
'mytikz.tex',
127-
figureheight = '\\figureheight',
128-
figurewidth = '\\figurewidth'
127+
figureheight='\\figureheight',
128+
figurewidth='\\figurewidth'
129129
)
130130
```
131131
and in the LaTeX source
@@ -181,7 +181,7 @@ pytest
181181
```
182182
183183
The final pHash may depend on any of the tools used during the process. For
184-
example, if your version of [Pillow](https://pypi.python.org/pypi/Pillow/3.0.0)
184+
example, if your version of [Pillow](https://pypi.python.org/pypi/Pillow/4.3.0)
185185
is too old, the pHash function might operate slightly differently and produce a
186186
slightly different pHash, resulting in a failing test. If tests are failing on
187187
your local machine, you should first make sure to have an up-to-date Pillow.

0 commit comments

Comments
 (0)