Skip to content

Commit 4396e79

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 475faf7 commit 4396e79

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

ultraplot/figure.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,6 +1101,7 @@ def _autoscale_shared_limits(self, which: str) -> None:
11011101
autoscale_view = getattr(ref, "autoscale_view", None)
11021102
if callable(autoscale_view):
11031103
autoscale_view(scalex=(which == "x"), scaley=(which == "y"))
1104+
11041105
def _snap_axes_to_pixel_grid(self, renderer) -> None:
11051106
"""
11061107
Snap visible axes bounds to the renderer pixel grid.

ultraplot/tests/test_figure.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,8 @@ def test_explicit_sharey_propagates_scale_changes():
403403

404404
assert axs[0].get_yscale() == "log"
405405
assert axs[1].get_yscale() == "log"
406+
407+
406408
def test_subplots_pixelsnap_aligns_axes_bounds():
407409
with uplt.rc.context({"subplots.pixelsnap": True}):
408410
fig, axs = uplt.subplots(ncols=2, nrows=2)

0 commit comments

Comments
 (0)