Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ultraplot/figure.py
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,9 @@ def _snap_axes_to_pixel_grid(self, renderer) -> None:
minw = invw
minh = invh

for ax in self._iter_axes(hidden=False, children=False, panels=True):
# Only snap main subplot axes. Guide/panel axes host legends/colorbars
# that use their own fractional placement and can be over-constrained.
for ax in self._iter_axes(hidden=False, children=False, panels=False):
bbox = ax.get_position(original=False)
old = np.array([bbox.x0, bbox.y0, bbox.x1, bbox.y1], dtype=float)
new = np.array(
Expand Down
Loading