@@ -112,6 +112,7 @@ def draw_path(data, path, draw_options=None, simplify=None):
112
112
113
113
def draw_pathcollection (data , obj ):
114
114
"""Returns PGFPlots code for a number of patch objects."""
115
+ print ("Drawing PathCollection" )
115
116
content = []
116
117
# gather data
117
118
assert obj .get_offsets () is not None
@@ -121,13 +122,12 @@ def draw_pathcollection(data, obj):
121
122
fmt = "{:" + data ["float format" ] + "}"
122
123
dd_strings = np .array ([[fmt .format (val ) for val in row ] for row in dd ])
123
124
124
- draw_options = ["scatter" , " only marks" ]
125
+ draw_options = ["only marks" ]
125
126
table_options = []
126
127
127
128
is_filled = False
128
129
129
130
if obj .get_array () is not None :
130
- draw_options .append ("scatter" )
131
131
dd_strings = np .column_stack ([dd_strings , obj .get_array ()])
132
132
labels .append ("colordata" )
133
133
draw_options .append ("scatter src=explicit" )
@@ -138,6 +138,7 @@ def draw_pathcollection(data, obj):
138
138
marker0 = None
139
139
if obj .get_cmap ():
140
140
mycolormap , is_custom_cmap = _mpl_cmap2pgf_cmap (obj .get_cmap (), data )
141
+ draw_options .append ("scatter" )
141
142
draw_options .append (
142
143
"colormap" + ("=" if is_custom_cmap else "/" ) + mycolormap
143
144
)
@@ -283,6 +284,7 @@ def draw_pathcollection(data, obj):
283
284
284
285
# remove duplicates
285
286
draw_options = sorted (list (set (draw_options )))
287
+ print ("Draw options: " , draw_options )
286
288
287
289
len_row = sum (len (item ) for item in draw_options )
288
290
j0 , j1 , j2 = ("" , ", " , "" ) if len_row < 80 else ("\n " , ",\n " , "\n " )
0 commit comments