Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Remove transform arguments from _iter_collection #23551

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 4, 2022
Merged
Show file tree
Hide file tree
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
7 changes: 3 additions & 4 deletions 7 lib/matplotlib/backend_bases.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ def draw_path_collection(self, gc, master_transform, paths, all_transforms,
paths, all_transforms)

for xo, yo, path_id, gc0, rgbFace in self._iter_collection(
gc, master_transform, all_transforms, list(path_ids), offsets,
offsetTrans, facecolors, edgecolors, linewidths, linestyles,
gc, list(path_ids), offsets, offsetTrans,
facecolors, edgecolors, linewidths, linestyles,
antialiaseds, urls, offset_position):
path, transform = path_id
# Only apply another translation if we have an offset, else we
Expand Down Expand Up @@ -367,8 +367,7 @@ def _iter_collection_uses_per_path(self, paths, all_transforms,
N = max(Npath_ids, len(offsets))
return (N + Npath_ids - 1) // Npath_ids

def _iter_collection(self, gc, master_transform, all_transforms,
path_ids, offsets, offsetTrans, facecolors,
def _iter_collection(self, gc, path_ids, offsets, offsetTrans, facecolors,
edgecolors, linewidths, linestyles,
antialiaseds, urls, offset_position):
"""
Expand Down
4 changes: 2 additions & 2 deletions 4 lib/matplotlib/backends/backend_pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2097,8 +2097,8 @@ def draw_path_collection(self, gc, master_transform, paths, all_transforms,
output(*self.gc.push())
lastx, lasty = 0, 0
for xo, yo, path_id, gc0, rgbFace in self._iter_collection(
gc, master_transform, all_transforms, path_codes, offsets,
offsetTrans, facecolors, edgecolors, linewidths, linestyles,
gc, path_codes, offsets, offsetTrans,
facecolors, edgecolors, linewidths, linestyles,
antialiaseds, urls, offset_position):

self.check_gc(gc0, rgbFace)
Expand Down
4 changes: 2 additions & 2 deletions 4 lib/matplotlib/backends/backend_ps.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,8 +567,8 @@ def draw_path_collection(self, gc, master_transform, paths, all_transforms,
path_codes.append(name)

for xo, yo, path_id, gc0, rgbFace in self._iter_collection(
gc, master_transform, all_transforms, path_codes, offsets,
offsetTrans, facecolors, edgecolors, linewidths, linestyles,
gc, path_codes, offsets, offsetTrans,
facecolors, edgecolors, linewidths, linestyles,
antialiaseds, urls, offset_position):
ps = "%g %g %s" % (xo, yo, path_id)
self._draw_ps(ps, gc0, rgbFace)
Expand Down
4 changes: 2 additions & 2 deletions 4 lib/matplotlib/backends/backend_svg.py
Original file line number Diff line number Diff line change
Expand Up @@ -753,8 +753,8 @@ def draw_path_collection(self, gc, master_transform, paths, all_transforms,
writer.end('defs')

for xo, yo, path_id, gc0, rgbFace in self._iter_collection(
gc, master_transform, all_transforms, path_codes, offsets,
offsetTrans, facecolors, edgecolors, linewidths, linestyles,
gc, path_codes, offsets, offsetTrans,
facecolors, edgecolors, linewidths, linestyles,
antialiaseds, urls, offset_position):
url = gc0.get_url()
if url is not None:
Expand Down
3 changes: 1 addition & 2 deletions 3 lib/matplotlib/tests/test_backend_bases.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ def check(master_transform, paths, all_transforms,
gc = rb.new_gc()
ids = [path_id for xo, yo, path_id, gc0, rgbFace in
rb._iter_collection(
gc, master_transform, all_transforms,
range(len(raw_paths)), offsets,
gc, range(len(raw_paths)), offsets,
transforms.AffineDeltaTransform(master_transform),
facecolors, edgecolors, [], [], [False],
[], 'screen')]
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.