Skip to content

Commit c03c672

Browse files
committed
Uncamelcase offsetTrans in draw_path_collection.
1 parent 2ebd4b6 commit c03c672

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

lib/matplotlib/backend_bases.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def draw_markers(self, gc, marker_path, marker_trans, path,
221221
rgbFace)
222222

223223
def draw_path_collection(self, gc, master_transform, paths, all_transforms,
224-
offsets, offsetTrans, facecolors, edgecolors,
224+
offsets, offset_trans, facecolors, edgecolors,
225225
linewidths, linestyles, antialiaseds, urls,
226226
offset_position):
227227
"""
@@ -230,7 +230,7 @@ def draw_path_collection(self, gc, master_transform, paths, all_transforms,
230230
Each path is first transformed by the corresponding entry
231231
in *all_transforms* (a list of (3, 3) matrices) and then by
232232
*master_transform*. They are then translated by the corresponding
233-
entry in *offsets*, which has been first transformed by *offsetTrans*.
233+
entry in *offsets*, which has been first transformed by *offset_trans*.
234234
235235
*facecolors*, *edgecolors*, *linewidths*, *linestyles*, and
236236
*antialiased* are lists that set the corresponding properties.
@@ -251,7 +251,7 @@ def draw_path_collection(self, gc, master_transform, paths, all_transforms,
251251
paths, all_transforms)
252252

253253
for xo, yo, path_id, gc0, rgbFace in self._iter_collection(
254-
gc, list(path_ids), offsets, offsetTrans,
254+
gc, list(path_ids), offsets, offset_trans,
255255
facecolors, edgecolors, linewidths, linestyles,
256256
antialiaseds, urls, offset_position):
257257
path, transform = path_id
@@ -367,7 +367,7 @@ def _iter_collection_uses_per_path(self, paths, all_transforms,
367367
N = max(Npath_ids, len(offsets))
368368
return (N + Npath_ids - 1) // Npath_ids
369369

370-
def _iter_collection(self, gc, path_ids, offsets, offsetTrans, facecolors,
370+
def _iter_collection(self, gc, path_ids, offsets, offset_trans, facecolors,
371371
edgecolors, linewidths, linestyles,
372372
antialiaseds, urls, offset_position):
373373
"""
@@ -413,7 +413,7 @@ def cycle_or_default(seq, default=None):
413413
else itertools.repeat(default))
414414

415415
pathids = cycle_or_default(path_ids)
416-
toffsets = cycle_or_default(offsetTrans.transform(offsets), (0, 0))
416+
toffsets = cycle_or_default(offset_trans.transform(offsets), (0, 0))
417417
fcs = cycle_or_default(facecolors)
418418
ecs = cycle_or_default(edgecolors)
419419
lws = cycle_or_default(linewidths)

lib/matplotlib/backends/backend_pdf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2039,7 +2039,7 @@ def draw_path(self, gc, path, transform, rgbFace=None):
20392039
self.file.output(self.gc.paint())
20402040

20412041
def draw_path_collection(self, gc, master_transform, paths, all_transforms,
2042-
offsets, offsetTrans, facecolors, edgecolors,
2042+
offsets, offset_trans, facecolors, edgecolors,
20432043
linewidths, linestyles, antialiaseds, urls,
20442044
offset_position):
20452045
# We can only reuse the objects if the presence of fill and
@@ -2081,7 +2081,7 @@ def draw_path_collection(self, gc, master_transform, paths, all_transforms,
20812081
if (not can_do_optimization) or (not should_do_optimization):
20822082
return RendererBase.draw_path_collection(
20832083
self, gc, master_transform, paths, all_transforms,
2084-
offsets, offsetTrans, facecolors, edgecolors,
2084+
offsets, offset_trans, facecolors, edgecolors,
20852085
linewidths, linestyles, antialiaseds, urls,
20862086
offset_position)
20872087

@@ -2097,7 +2097,7 @@ def draw_path_collection(self, gc, master_transform, paths, all_transforms,
20972097
output(*self.gc.push())
20982098
lastx, lasty = 0, 0
20992099
for xo, yo, path_id, gc0, rgbFace in self._iter_collection(
2100-
gc, path_codes, offsets, offsetTrans,
2100+
gc, path_codes, offsets, offset_trans,
21012101
facecolors, edgecolors, linewidths, linestyles,
21022102
antialiaseds, urls, offset_position):
21032103

lib/matplotlib/backends/backend_ps.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ def draw_markers(
532532

533533
@_log_if_debug_on
534534
def draw_path_collection(self, gc, master_transform, paths, all_transforms,
535-
offsets, offsetTrans, facecolors, edgecolors,
535+
offsets, offset_trans, facecolors, edgecolors,
536536
linewidths, linestyles, antialiaseds, urls,
537537
offset_position):
538538
# Is the optimization worth it? Rough calculation:
@@ -548,7 +548,7 @@ def draw_path_collection(self, gc, master_transform, paths, all_transforms,
548548
if not should_do_optimization:
549549
return RendererBase.draw_path_collection(
550550
self, gc, master_transform, paths, all_transforms,
551-
offsets, offsetTrans, facecolors, edgecolors,
551+
offsets, offset_trans, facecolors, edgecolors,
552552
linewidths, linestyles, antialiaseds, urls,
553553
offset_position)
554554

@@ -567,7 +567,7 @@ def draw_path_collection(self, gc, master_transform, paths, all_transforms,
567567
path_codes.append(name)
568568

569569
for xo, yo, path_id, gc0, rgbFace in self._iter_collection(
570-
gc, path_codes, offsets, offsetTrans,
570+
gc, path_codes, offsets, offset_trans,
571571
facecolors, edgecolors, linewidths, linestyles,
572572
antialiaseds, urls, offset_position):
573573
ps = "%g %g %s" % (xo, yo, path_id)

lib/matplotlib/backends/backend_svg.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ def draw_markers(
719719
writer.end('g')
720720

721721
def draw_path_collection(self, gc, master_transform, paths, all_transforms,
722-
offsets, offsetTrans, facecolors, edgecolors,
722+
offsets, offset_trans, facecolors, edgecolors,
723723
linewidths, linestyles, antialiaseds, urls,
724724
offset_position):
725725
# Is the optimization worth it? Rough calculation:
@@ -735,7 +735,7 @@ def draw_path_collection(self, gc, master_transform, paths, all_transforms,
735735
if not should_do_optimization:
736736
return super().draw_path_collection(
737737
gc, master_transform, paths, all_transforms,
738-
offsets, offsetTrans, facecolors, edgecolors,
738+
offsets, offset_trans, facecolors, edgecolors,
739739
linewidths, linestyles, antialiaseds, urls,
740740
offset_position)
741741

@@ -753,7 +753,7 @@ def draw_path_collection(self, gc, master_transform, paths, all_transforms,
753753
writer.end('defs')
754754

755755
for xo, yo, path_id, gc0, rgbFace in self._iter_collection(
756-
gc, path_codes, offsets, offsetTrans,
756+
gc, path_codes, offsets, offset_trans,
757757
facecolors, edgecolors, linewidths, linestyles,
758758
antialiaseds, urls, offset_position):
759759
url = gc0.get_url()

lib/matplotlib/backends/backend_template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def draw_path(self, gc, path, transform, rgbFace=None):
6363
# relative timings by leaving it out. backend implementers concerned with
6464
# performance will probably want to implement it
6565
# def draw_path_collection(self, gc, master_transform, paths,
66-
# all_transforms, offsets, offsetTrans,
66+
# all_transforms, offsets, offset_trans,
6767
# facecolors, edgecolors, linewidths, linestyles,
6868
# antialiaseds):
6969
# pass

0 commit comments

Comments
 (0)