Skip to content

Commit df377c0

Browse files
Use new Frame and Axis parameter classes
1 parent 2a14b76 commit df377c0

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

examples/gallery/embellishments/legend.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# %%
1717
import numpy as np
1818
import pygmt
19-
from pygmt.params import Position
19+
from pygmt.params import Axis, Frame, Position
2020

2121
# Set up some test data
2222
x = np.arange(-10, 10.2, 0.2)
@@ -31,7 +31,11 @@
3131
fig.basemap(
3232
projection="X10c/7c",
3333
region=[-10, 10, -3.5, 3.5],
34-
frame=["WSne", "xaf+lx", "ya1f0.5+ly"],
34+
frame=Frame(
35+
axes="WSne",
36+
xaxis=Axis(annot=True, tick=True, label="x"),
37+
yaxis=Axis(annot=1, tick=0.5, label="y"),
38+
),
3539
)
3640

3741
# -----------------------------------------------------------------------------

0 commit comments

Comments
 (0)