Skip to content

Commit c2f84c0

Browse files
committed
updated to check transform branches
1 parent 863502e commit c2f84c0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5410,8 +5410,10 @@ def get_interp_point(idx):
54105410
if ind_dir == "y":
54115411
pts = pts[:, ::-1]
54125412

5413-
if "transform" not in kwargs:
5414-
self.update_datalim(pts, updatex=True, updatey=True)
5413+
up_x, up_y = True, True
5414+
if "transform" in kwargs:
5415+
up_x, up_y = kwargs["transform"].contains_branch_seperately(self.transData)
5416+
self.update_datalim(pts, updatex=up_x, updatey=up_y)
54155417

54165418
self.add_collection(collection, autolim=False)
54175419
self._request_autoscale_view()

0 commit comments

Comments
 (0)