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 c4a19a5 commit 5ec1180Copy full SHA for 5ec1180
pygmt/params/box.py
@@ -6,7 +6,7 @@
6
from collections.abc import Sequence
7
8
from pygmt.alias import Alias
9
-from pygmt.exceptions import GMTValueError
+from pygmt.exceptions import GMTInvalidInput, GMTValueError
10
from pygmt.params.base import BaseParam
11
12
@@ -98,6 +98,9 @@ def _innerborder(self) -> list[str | float] | None:
98
"""
99
Inner border of the box, formatted as a list of 1-2 values, or None.
100
101
+ if self.inner_gap is not None and self.inner_pen is None:
102
+ msg = "Parameter 'inner_pen' is required when 'inner_gap' is set."
103
+ raise GMTInvalidInput(msg)
104
return [v for v in (self.inner_gap, self.inner_pen) if v is not None] or None
105
106
@property
0 commit comments