Skip to content

Commit b831389

Browse files
committed
fix future warning
1 parent bf55a44 commit b831389

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

matplotlib2tikz/line2d.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
from . import color as mycol
44
from . import path as mypath
55

6+
import six
7+
68

79
def draw_line2d(data, obj):
810
'''Returns the PGFPlots code for an Line2D environment.
@@ -58,7 +60,9 @@ def draw_line2d(data, obj):
5860
mark_options = ['solid']
5961
if extra_mark_options:
6062
mark_options.append(extra_mark_options)
61-
if marker_face_color is None or marker_face_color == 'none':
63+
if marker_face_color is None or \
64+
(isinstance(marker_face_color, six.string_types) and
65+
marker_face_color == 'none'):
6266
mark_options.append('fill opacity=0')
6367
else:
6468
data, face_xcolor, _ = mycol.mpl_color2xcolor(

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ def read(fname):
3535
'numpy',
3636
'Pillow >= 3.0.0',
3737
'pipdated',
38+
'six',
3839
],
3940
description='convert matplotlib figures into TikZ/PGFPlots',
4041
long_description=read('README.rst'),

0 commit comments

Comments
 (0)