Skip to content

Commit 84d7447

Browse files
DOC/Gallery example "Colorbars": Migrate frame settings to the new Frame/Axis syntax (#4506)
1 parent 4c6a97c commit 84d7447

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

examples/gallery/embellishments/colorbar.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,14 @@
1313

1414
# %%
1515
import pygmt
16-
from pygmt.params import Position
16+
from pygmt.params import Axis, Frame, Position
1717

1818
fig = pygmt.Figure()
19-
fig.basemap(region=[0, 3, 6, 9], projection="x3c", frame=["af", "WSne+tColorbars"])
19+
fig.basemap(
20+
region=[0, 3, 6, 9],
21+
projection="x3c",
22+
frame=Frame(axes="WSne", title="Colorbars", axis=Axis(annot=True, tick=True)),
23+
)
2024

2125
# ============
2226
# Create a colorbar designed for seismic tomography - roma

0 commit comments

Comments
 (0)