Skip to content

Commit a00e697

Browse files
authored
Merge pull request #179 from nschloe/readme
Readme
2 parents 2f6296c + 0a97368 commit a00e697

File tree

2 files changed

+4
-14
lines changed

2 files changed

+4
-14
lines changed

README.md

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ This is matplotlib2tikz, a Python tool for converting matplotlib figures into
1414

1515
for native inclusion into LaTeX documents.
1616

17+
matplotlib2tikz works with both Python 2 and Python 3.
18+
1719
The output of matplotlib2tikz is in
1820
[PGFPlots](http://pgfplots.sourceforge.net/pgfplots.pdf), a LaTeX library that
1921
sits on top of TikZ and describes graphs in terms of axes, data etc.
@@ -96,18 +98,6 @@ pip install -U matplotlib2tikz
9698
to install/update.
9799

98100

99-
#### Dependencies
100-
101-
matplotlib2tikz needs [matplotlib](http://matplotlib.org/) and
102-
[NumPy](http://www.numpy.org/) to work. matplotlib2tikz works both with
103-
Python 2 and Python 3.
104-
105-
To use the resulting TikZ/PGFPlots figures, your LaTeX installation needs
106-
107-
* TikZ (aka PGF, >=2.00), and
108-
* PGFPlots (>=1.3).
109-
110-
111101
### Usage
112102

113103
1. Generate your matplotlib plot as usual.

matplotlib2tikz/line2d.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,14 +287,14 @@ def _mpl_marker2pgfp_marker(data, mpl_marker, marker_face_color):
287287
pgfplots_marker = _MP_MARKER2PGF_MARKER[mpl_marker]
288288
if (marker_face_color is not None) and pgfplots_marker == 'o':
289289
pgfplots_marker = '*'
290-
data['pgfplots libs'].add('plotmarks')
290+
data['tikz libs'].add('plotmarks')
291291
marker_options = None
292292
return (data, pgfplots_marker, marker_options)
293293
except KeyError:
294294
pass
295295
# try plotmarks list
296296
try:
297-
data['pgfplots libs'].add('plotmarks')
297+
data['tikz libs'].add('plotmarks')
298298
pgfplots_marker, marker_options = _MP_MARKER2PLOTMARKS[mpl_marker]
299299
if marker_face_color is not None and \
300300
marker_face_color.lower() != 'none' and \

0 commit comments

Comments
 (0)