I want to plot a patch with the '*' hatch that is filled. The hatch is always filled when using
the agg backend but in the pdf backend only when it is rasterized.
As the legend artists do not use the rasterized prop (correct?), it is inconsistent.
In pdf when an artist is rasterized that just means that artist is rendered via the Agg backend (the same as png) and then that is inserted into the pdf (hence why they match). We probably should propagate the rasterized flag to the legend. That isn't fool-proof as the artists maybe rasterized based on zorder as well, but better than nothing.
So the legend is kind of unrelated here; it's that Agg renders with a filled hatch pattern when fill=False while PDF does not. Probably either one can be fixed directly rather easily, but which one is the expected behaviour here?
Activity
tacaswell commented on Mar 27, 2016
This may be addressed by #6198
tacaswell commented on Mar 27, 2016
No, not fixed.
In pdf when an artist is rasterized that just means that artist is rendered via the Agg backend (the same as png) and then that is inserted into the pdf (hence why they match). We probably should propagate the rasterized flag to the legend. That isn't fool-proof as the artists maybe rasterized based on zorder as well, but better than nothing.
tacaswell commented on Mar 27, 2016
Of course doing that exposes #6227 ;)
QuLogic commented on Nov 8, 2016
So the legend is kind of unrelated here; it's that Agg renders with a filled hatch pattern when fill=False while PDF does not. Probably either one can be fixed directly rather easily, but which one is the expected behaviour here?
tacaswell commented on Nov 8, 2016
I would go with the Agg behavior as 'correct'.
QuLogic commented on Nov 8, 2016
Well that's good, because PDF's the easier one to fix.
Fill hatches on PDF and PS backends.
NelleV commented on Nov 14, 2016
Closed in #7421