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

Skip to content

Commit 9aa1cb3

Browse files
committed
Merge pull request #635 from jenshnielsen/doc_up
Legend guide: transform should be bbox_transform
2 parents f26ea29 + bfb4998 commit 9aa1cb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/users/legend_guide.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ axes coordinates.
160160
For example, if you want your axes legend located at the figure corner
161161
(instead of the axes corner)::
162162

163-
l = legend(bbox_to_anchor=(0, 0, 1, 1), transform=gcf().transFigure)
163+
l = legend(bbox_to_anchor=(0, 0, 1, 1), bbox_transform=gcf().transFigure)
164164

165165
Also, you can place above or outer right-hand side of the axes,
166166

0 commit comments

Comments
 (0)