@@ -18,33 +18,6 @@ class Box(BaseParam):
1818 """
1919 Class for specifying the box around GMT embellishments.
2020
21- Parameters
22- ----------
23- clearance
24- Set clearances between the embellishment and the box border. It can be either a
25- scalar value or a sequence of two/four values.
26-
27- - a scalar value means a uniform clearance in all four directions.
28- - a sequence of two values means separate clearances in x- and y-directions.
29- - a sequence of four values means separate clearances for left/right/bottom/top.
30- fill
31- Fill for the box [Default is no fill].
32- inner_gap
33- Gap between the outer and inner borders [Default is ``"2p"``].
34- inner_pen
35- Pen attributes for the inner border [Default to :gmt-term:`MAP_DEFAULT_PEN`].
36- pen
37- Pen attributes for the box outline.
38- radius
39- Draw a rounded rectangular border instead of sharp. Passing a value with unit
40- to control the corner radius [Default is ``"6p"``].
41- shade_offset
42- Place an offset background shaded region behind the box. A sequence of two
43- values (dx, dy) indicates the shift relative to the foreground frame [Default is
44- ``("4p", "-4p")``].
45- shade_fill
46- Fill for the shaded region [Default is ``"gray50"``].
47-
4821 Examples
4922 --------
5023 >>> import pygmt
@@ -54,13 +27,36 @@ class Box(BaseParam):
5427 >>> fig.show()
5528 """
5629
30+ #: Set clearances between the embellishment and the box border. It can be either a
31+ #: scalar value or a sequence of two/four values.
32+ #:
33+ #: - a scalar value means a uniform clearance in all four directions.
34+ #: - a sequence of two values means separate clearances in x- and y-directions.
35+ #: - a sequence of four values means separate clearances for left/right/bottom/top.
5736 clearance : float | str | Sequence [float | str ] | None = None
37+
38+ #: Fill for the box [Default is no fill].
5839 fill : str | None = None
40+
41+ #: Gap between the outer and inner borders [Default is ``"2p"``].
5942 inner_gap : float | str | None = None
43+
44+ #: Pen attributes for the inner border [Default to :gmt-term:`MAP_DEFAULT_PEN`].
6045 inner_pen : str | None = None
46+
47+ #: Pen attributes for the box outline.
6148 pen : str | None = None
49+
50+ #: Draw a rounded rectangular border instead of sharp. Passing a value with unit to
51+ #: control the corner radius [Default is ``"6p"``].
6252 radius : str | bool = False
53+
54+ #: Place an offset background shaded region behind the box. A sequence of two values
55+ #: (dx, dy) indicates the shift relative to the foreground frame [Default is
56+ #: ``("4p", "-4p")``].
6357 shade_offset : Sequence [float | str ] | None = None
58+
59+ #: Fill for the shaded region [Default is ``"gray50"``].
6460 shade_fill : str | None = None
6561
6662 def _validate (self ):
0 commit comments