Skip to content

Commit 2303df6

Browse files
committed
Merge pull request #6544 from anntzer/margins-typo
Fix typo in margins handling.
2 parents 0ac187d + 655f5ae commit 2303df6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/axes/_base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2250,7 +2250,7 @@ def handle_single_axis(scale, autoscaleon, shared_axes, interval,
22502250
x0, x1 = mtransforms.nonsingular(
22512251
x0, x1, increasing=False, expander=0.05)
22522252

2253-
if (margin > 0 and do_lower_margin or do_upper_margin):
2253+
if margin > 0 and (do_lower_margin or do_upper_margin):
22542254
if axis.get_scale() == 'linear':
22552255
delta = (x1 - x0) * margin
22562256
if do_lower_margin:

0 commit comments

Comments
 (0)