Skip to content

Commit 9dd17ae

Browse files
DOC/Gallery example 3-D bar plot: Migrate frame settings to the new Frame/Axis syntax (#4496)
Use new Frame and Axis parameter classes
1 parent 538d006 commit 9dd17ae

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

examples/gallery/3d_plots/3d_bar.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
# %%
2020
import pygmt
21-
from pygmt.params import Position
21+
from pygmt.params import Axis, Frame, Position
2222

2323
# Define a study area around northern Japan with large elevation changes
2424
region = [141, 147, 36, 43]
@@ -43,7 +43,12 @@
4343
region=[*region, zmin, zmax],
4444
projection="M10c",
4545
zsize="8c",
46-
frame=["WSneZ", "xaf", "yag", "za1000f500+lElevation / m"],
46+
frame=Frame(
47+
axes="WSneZ",
48+
xaxis=Axis(annot=True, tick=True),
49+
yaxis=Axis(annot=True, grid=True),
50+
zaxis=Axis(annot=1000, tick=500, label="Elevation / m"),
51+
),
4752
perspective=(195, 30),
4853
)
4954

0 commit comments

Comments
 (0)