Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
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
Next Next commit
Use dstack instead of zip to combine offset arrays in scatter.
  • Loading branch information
mdboom committed Sep 30, 2013
commit d75d39ff32e1c05b1fc919420e9d7e4af1ccc53d
4 changes: 3 additions & 1 deletion lib/matplotlib/axes/_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -3269,12 +3269,14 @@ def scatter(self, x, y, s=20, c='b', marker='o', cmap=None, norm=None,
if not marker_obj.is_filled():
edgecolors = 'face'

offsets = np.dstack((x, y))

collection = mcoll.PathCollection(
(path,), scales,
facecolors=colors,
edgecolors=edgecolors,
linewidths=linewidths,
offsets=list(zip(x, y)),
offsets=offsets,
transOffset=kwargs.pop('transform', self.transData),
)
collection.set_transform(mtransforms.IdentityTransform())
Expand Down