We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9891b2c commit a9d094cCopy full SHA for a9d094c
pygmt/src/legend.py
@@ -91,7 +91,7 @@ def legend(
91
kwargs["F"] = box
92
93
kind = data_kind(spec)
94
- if kind not in {"vectors", "file", "stringio"}: # kind="vectors" means spec is None
+ if spec is not None and kind not in {"file", "stringio"}:
95
raise GMTInvalidInput(f"Unrecognized data type: {type(spec)}")
96
if kind == "file" and is_nonstr_iter(spec):
97
raise GMTInvalidInput("Only one legend specification file is allowed.")
0 commit comments