Skip to content

Commit 40601c4

Browse files
committed
Back to the default postion and box for legend
1 parent d0cc9f3 commit 40601c4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pygmt/src/legend.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,11 @@ def legend(
8585
"""
8686
self._activate_figure()
8787

88+
# Default position and box when not specified.
8889
if kwargs.get("D") is None:
8990
kwargs["D"] = position
91+
if box is False and kwargs.get("F") is None:
92+
box = Box(pen="1p", fill="white") # Default box
9093

9194
kind = data_kind(spec)
9295
if kind not in {"empty", "file", "stringio"}:

0 commit comments

Comments
 (0)