8000 Remove unused argument "offsets" · matplotlib/matplotlib@6f03d53 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6f03d53

Browse files
committed
Remove unused argument "offsets"
1 parent 0715bab commit 6f03d53

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

lib/matplotlib/backend_bases.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ def draw_path_collection(self, gc, master_transform, paths, all_transforms,
293293
"""
294294
path_ids = []
295295
for path, transform in self._iter_collection_raw_paths(
296-
master_transform, paths, all_transforms, offsets):
296+
master_transform, paths, all_transforms):
297297
path_ids.append((path, transforms.Affine2D(transform)))
298298

299299
for xo, yo, path_id, gc0, rgbFace in self._iter_collection(
@@ -357,7 +357,7 @@ def draw_gouraud_triangles(self, gc, triangles_array, colors_array,
357357
self.draw_gouraud_triangle(gc, tri, col, transform)
358358

359359
def _iter_collection_raw_paths(self, master_transform, paths,
360-
all_transforms, offsets):
360+
all_transforms):
361361
"""
362362
This is a helper method (along with :meth:`_iter_collection`) to make
363363
it easier to write a space-efficent :meth:`draw_path_collection`

lib/matplotlib/backends/backend_pdf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1696,7 +1696,7 @@ def draw_path_collection(self, gc, master_transform, paths, all_transforms,
16961696
padding = np.max(linewidths)
16971697
path_codes = []
16981698
for i, (path, transform) in enumerate(self._iter_collection_raw_paths(
1699-
master_transform, paths, all_transforms, offsets)):
1699+
master_transform, paths, all_transforms)):
17001700
name = self.file.pathCollectionObject(
17011701
gc, path, transform, padding, filled, stroked)
17021702
path_codes.append(name)

lib/matplotlib/backends/backend_ps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ def draw_path_collection(self, gc, master_transform, paths, all_transforms,
600600

601601
path_codes = []
602602
for i, (path, transform) in enumerate(self._iter_collection_raw_paths(
603-
master_transform, paths, all_transforms, offsets)):
603+
master_transform, paths, all_transforms)):
604604
name = 'p%x_%x' % (self._path_collection_id, i)
605605
ps_cmd = ['/%s {' % name,
606606
'newpath', 'translate']

lib/matplotlib/backends/backend_svg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ def draw_path_collection(self, gc, master_transform, paths, all_transforms,
651651
path_codes = []
652652
writer.start('defs')
653653
for i, (path, transform) in enumerate(self._iter_collection_raw_paths(
654-
master_transform, paths, all_transforms, offsets)):
654+
master_transform, paths, all_transforms)):
655655
transform = Affine2D(transform.get_matrix()).scale(1.0, -1.0)
656656
d = self._convert_path(path, transform, simplify=False)
657657
oid = 'C%x_%x_%s' % (self._path_collection_id, i,

lib/matplotlib/tests/test_backend_bases.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def check(master_transform, paths, all_transforms,
2626
offsets, facecolors, edgecolors):
2727
rb = RendererBase()
2828
raw_paths = list(rb._iter_collection_raw_paths(
29-
master_transform, p 4EB0 aths, all_transforms, offsets))
29+
master_transform, paths, all_transforms))
3030
gc = rb.new_gc()
3131
ids = [path_id for xo, yo, path_id, gc0, rgbFace in
3232
rb._iter_collection(gc, master_transform, all_transforms,

0 commit comments

Comments
 (0)
0