Skip to content

Commit

Permalink
Use new insets API in .plot
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncozens committed Nov 20, 2024
1 parent 59f3353 commit 4b12b32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kurbopy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def plot(self, ax, **kwargs):
left, right = ax.get_xlim()
top, bottom = ax.get_ylim()
bounds = self.bounding_box()
bounds = bounds.inset(50)
bounds = bounds.inset(Insets.uniform(50))
if not (left == 0.0 and right == 1.0 and top == 0.0 and bottom == 1.0):
bounds = bounds.union_pt(Point(left, top))
bounds = bounds.union_pt(Point(right, bottom))
Expand Down

0 comments on commit 4b12b32

Please sign in to comment.