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.
2 parents 0277e0b + 16a1d3f commit 3e9ea97Copy full SHA for 3e9ea97
welly/plot.py
@@ -393,9 +393,14 @@ def plot_2d_curve(curve,
393
x2=np.nanmin(curve_data),
394
facecolor='none',
395
**kwargs)
396
+
397
+ # Combine the paths into a single Path object
398
+ vertices = np.concatenate([p.vertices for p in paths._paths])
399
+ codes = np.concatenate([p.codes for p in paths._paths])
400
+ merged_paths = mpl.path.Path(vertices, codes)
401
402
# Make the 'fill' mask and clip the background image with it.
- patch = PathPatch(paths._paths[0], visible=False)
403
+ patch = PathPatch(merged_paths, visible=False)
404
ax.add_artist(patch)
405
im.set_clip_path(patch)
406
else:
0 commit comments