Skip to content

Commit 0a83d86

Browse files
authored
Merge pull request #442 from dajuno/fix_scatter_markopts
add missing "mark options={}" for scatter plots
2 parents bf62dda + 047c661 commit 0a83d86

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tikzplotlib/_path.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,9 @@ def draw_pathcollection(data, obj):
174174
data, pgfplots_marker, marker_options = _mpl_marker2pgfp_marker(
175175
data, marker0, fc
176176
)
177-
draw_options += [f"mark={pgfplots_marker}"] + marker_options
177+
draw_options += [f"mark={pgfplots_marker}"]
178+
if marker_options:
179+
draw_options += ["mark options={{{}}}".format(",".join(marker_options))]
178180

179181
# `only mark` plots don't need linewidth
180182
data, extra_draw_options = get_draw_options(data, obj, ec, fc, ls, None)

0 commit comments

Comments
 (0)