Skip to content

Commit 31ae50f

Browse files
committed
Use aspect=1, not aspect=True.
aspect=True seems like an obfuscated way to spell aspect=1 ("equal aspect"). (Note that this should not be confused with uses of `aspect=True` in AxesGrid, which is different and actually takes a bool as argument...)
1 parent 4b50ce6 commit 31ae50f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/matplotlib/tests/test_arrow_patches.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ def test_fancyarrow():
1818
t = ["fancy", "simple", mpatches.ArrowStyle.Fancy()]
1919

2020
fig, axs = plt.subplots(len(t), len(r), squeeze=False,
21-
subplot_kw=dict(aspect=True),
22-
figsize=(8, 4.5))
21+
figsize=(8, 4.5), subplot_kw=dict(aspect=1))
2322

2423
for i_r, r1 in enumerate(r):
2524
for i_t, t1 in enumerate(t):

0 commit comments

Comments
 (0)