|
3 | 3 | ===== |
4 | 4 |
|
5 | 5 | The :meth:`pygmt.Figure.inset` method adds an inset figure inside a larger |
6 | | -figure. The method is called using a ``with`` statement, and its |
7 | | -``position``, ``box``, ``offset``, and ``margin`` parameters are set. Plotting |
8 | | -methods called within the ``with`` statement are applied to the inset figure. |
| 6 | +figure. The method is called using a ``with`` statement, and its ``position``, |
| 7 | +``box``, ``offset``, and ``clearance`` parameters are set. Plotting methods |
| 8 | +called within the ``with`` statement are applied to the inset figure. |
9 | 9 | """ |
10 | 10 |
|
11 | 11 | # %% |
|
18 | 18 | # adding a frame |
19 | 19 | fig.coast(region="MG+r2", land="brown", water="lightblue", shorelines="thin", frame="a") |
20 | 20 | # Create an inset, placing it in the Top Left (TL) corner with a width of 3.5 cm and |
21 | | -# x- and y-offsets of 0.2 cm. The margin is set to 0, and the border is "gold" with a |
| 21 | +# x- and y-offsets of 0.2 cm. The clearance is set to 0, and the border is "gold" with a |
22 | 22 | # pen size of 1.5 points. |
23 | | -with fig.inset(position="jTL+w3.5c+o0.2c", margin=0, box=Box(pen="1.5p,gold")): |
| 23 | +with fig.inset(position="jTL+w3.5c+o0.2c", clearance=0, box=Box(pen="1.5p,gold")): |
24 | 24 | # Create a figure in the inset using coast. This example uses the azimuthal |
25 | 25 | # orthogonal projection centered at 47E, 20S. The land color is set to |
26 | 26 | # "gray" and Madagascar is highlighted in "red3". |
|
0 commit comments