Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit da17670

Browse files
authored
Merge pull request #21599 from meeseeksmachine/auto-backport-of-pr-21592-on-v3.5.x
Backport PR #21592 on branch v3.5.x ([BUG in 3.5.0rc1] - Anatomy of a Figure has the legend in the wrong spot)
2 parents 7644c5c + f35e3b5 commit da17670

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/showcase/anatomy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def minor_tick(x, pos):
5252
ax.set_xlabel("X axis label")
5353
ax.set_ylabel("Y axis label")
5454

55-
ax.legend()
55+
ax.legend(loc="upper right")
5656

5757

5858
def circle(x, y, radius=0.15):

0 commit comments

Comments
 (0)