Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/matplotlib/axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -7460,6 +7460,9 @@ def pcolor(self, *args, **kwargs):
*alpha*: ``0 <= scalar <= 1`` or *None*
the alpha blending value

*snap*: bool
Whether to snap the mesh to pixel boundaries.

Return value is a :class:`matplotlib.collections.Collection`
instance.

Expand Down Expand Up @@ -7603,6 +7606,8 @@ def pcolor(self, *args, **kwargs):
ec.lower() == "none"):
kwargs['antialiaseds'] = False

kwargs.setdefault('snap', False)

collection = mcoll.PolyCollection(verts, **kwargs)

collection.set_alpha(alpha)
Expand Down