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

Skip to content

Commit b528d5c

Browse files
authored
Merge pull request #21592 from stefmolin/master
[BUG in 3.5.0rc1] - Anatomy of a Figure has the legend in the wrong spot
2 parents da009cc + 65f4453 commit b528d5c

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)