File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 3
3
from . import color as mycol
4
4
from . import path as mypath
5
5
6
+ import six
7
+
6
8
7
9
def draw_line2d (data , obj ):
8
10
'''Returns the PGFPlots code for an Line2D environment.
@@ -58,7 +60,9 @@ def draw_line2d(data, obj):
58
60
mark_options = ['solid' ]
59
61
if extra_mark_options :
60
62
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' ):
62
66
mark_options .append ('fill opacity=0' )
63
67
else :
64
68
data , face_xcolor , _ = mycol .mpl_color2xcolor (
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ def read(fname):
35
35
'numpy' ,
36
36
'Pillow >= 3.0.0' ,
37
37
'pipdated' ,
38
+ 'six' ,
38
39
],
39
40
description = 'convert matplotlib figures into TikZ/PGFPlots' ,
40
41
long_description = read ('README.rst' ),
You can’t perform that action at this time.
0 commit comments