You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since 1.4.0 rc1 I get "../matplotlib/artist.py:686: UserWarning: Rasterization of 'matplotlib.collections.PolyCollection object at 0x6004a90' will be ignored" when using the rasterized=True parameter on a PolyCollection.
This is due to the fact that PolyCollection doesn't have its own draw method anymore (which in 1.3.1 had the @allow_rasterization decorator) but instead uses the inherited one from _CollectionWithSizes which doesn't have the decorator.
The text was updated successfully, but these errors were encountered:
Without having tested whether the rasterization code path was really broken, I think the only effect was the output of the UserWarning, as set_rasterized() checks hasattr(self.draw, "_supports_rasterization") which fails but self._rasterized = rasterized is set regardless and PolyCollection would invoke Collection.draw which in turn has the allow_rasterization decorator.
EDIT: To clarify, PolyCollection doesn't directly invoke Collection.draw but its inherited _CollectionWithSizes would.
Since 1.4.0 rc1 I get "../matplotlib/artist.py:686: UserWarning: Rasterization of 'matplotlib.collections.PolyCollection object at 0x6004a90' will be ignored" when using the
rasterized=True
parameter on aPolyCollection
.This is due to the fact that
PolyCollection
doesn't have its owndraw
method anymore (which in 1.3.1 had the@allow_rasterization
decorator) but instead uses the inherited one from_CollectionWithSizes
which doesn't have the decorator.The text was updated successfully, but these errors were encountered: