Saving as a pdf ignores set_clip_path
when there is more than one of them.
#18499
Labels
Milestone
set_clip_path
when there is more than one of them.
#18499
I am trying to plot some curves with variable width and opacity. To do this I first plot a background image with the correct color, which I then clip using patches.
It works perfectlty, except when I try to export the result as a PDF, where all clipping information is lost if I try to draw more than one curve. There is no problem when exporting to PNG or with the inline viewer.
Code for reproduction
PNG output

PDF output

If I only try to plot a single curve, then everything works as expected.
Is this linked to a known issue?
Does anyone have a workaround?
Many thanks.
Matplotlib version
The text was updated successfully, but these errors were encountered: