Skip to content

Commit 717152a

Browse files
authored
Merge branch 'master' into patch-1
2 parents 8d36b90 + a00e697 commit 717152a

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
@@ -303,14 +303,14 @@ def _mpl_marker2pgfp_marker(data, mpl_marker, marker_face_color):
303303
pgfplots_marker = _MP_MARKER2PGF_MARKER[mpl_marker]
304304
if (marker_face_color is not None) and pgfplots_marker == 'o':
305305
pgfplots_marker = '*'
306-
data['pgfplots libs'].add('plotmarks')
306+
data['tikz libs'].add('plotmarks')
307307
marker_options = None
308308
return (data, pgfplots_marker, marker_options)
309309
except KeyError:
310310
pass
311311
# try plotmarks list
312312
try:
313-
data['pgfplots libs'].add('plotmarks')
313+
data['tikz libs'].add('plotmarks')
314314
pgfplots_marker, marker_options = _MP_MARKER2PLOTMARKS[mpl_marker]
315315
if marker_face_color is not None and \
316316
marker_face_color.lower() != 'none' and \

0 commit comments

Comments
 (0)