We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48691e1 commit f351ce3Copy full SHA for f351ce3
src/tikzplotlib/_path.py
@@ -230,6 +230,12 @@ def draw_pathcollection(data, obj):
230
marker0 = None
231
if obj.get_paths():
232
p = obj.get_paths()[0]
233
+ mark_size = obj.get_sizes()[0]
234
+ if mark_size:
235
+ ff = data["float format"]
236
+ # setting half size because pgfplots counts the radius/half-width, while mark-size is squared diameter
237
+ pgf_size = 0.5 * mark_size ** 0.5
238
+ draw_options.append(f"mark size={pgf_size:{ff}}pt")
239
ms = {style: MarkerStyle(style) for style in MarkerStyle.markers}
240
paths = {
241
style: marker.get_path().transformed(marker.get_transform())
0 commit comments