|
81 | 81 | # Use the ``box`` parameter for adjusting the box around the legend. |
82 | 82 |
|
83 | 83 | fig = pygmt.Figure() |
84 | | -fig.basemap(region=[-5, 5, -5, 5], projection="X5c", frame="rltb+glightgray") |
| 84 | +fig.basemap( |
| 85 | + region=[-5, 5, -5, 5], projection="X5c", frame=Frame(axes="rltb", fill="lightgray") |
| 86 | +) |
85 | 87 |
|
86 | 88 | fig.plot(x=0, y=0, style="c0.25c", fill="orange", label="orange circle") |
87 | 89 | fig.plot(x=1, y=0, style="t0.3c", fill="pink", pen="black", label="pink triangle") |
|
90 | 92 | fig.legend(position=Position("TL", offset=(0.3, 0.2)), box=True) |
91 | 93 |
|
92 | 94 | fig.shift_origin(xshift="w+1c") |
93 | | -fig.basemap(region=[-5, 5, -5, 5], projection="X5c", frame="rltb+glightgray") |
| 95 | +fig.basemap( |
| 96 | + region=[-5, 5, -5, 5], projection="X5c", frame=Frame(axes="rltb", fill="lightgray") |
| 97 | +) |
94 | 98 |
|
95 | 99 | fig.plot(x=0, y=0, style="c0.25c", fill="orange", label="orange circle") |
96 | 100 | fig.plot(x=1, y=0, style="t0.3c", fill="pink", pen="black", label="pink triangle") |
|
0 commit comments