Skip to content

Commit 99661c7

Browse files
authored
DOC/Test "test_helper": Migrate frame settings to the new Frame/Axis syntax (#4530)
1 parent bd90727 commit 99661c7

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

pygmt/tests/test_helpers.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
unique_name,
2121
)
2222
from pygmt.helpers.testing import load_static_earth_relief, skip_if_no
23+
from pygmt.params import Axis, Frame
2324

2425

2526
def test_load_static_earth_relief():
@@ -52,11 +53,12 @@ def test_non_ascii_to_octal():
5253
fig.basemap(
5354
region=[0, 10, 0, 5],
5455
projection="X10c/5c",
55-
frame=[
56-
"xaf+lISOLatin1: fi‰“”¥",
57-
"yaf+lSymbol: αβ∇∋∈",
58-
"WSen+tZapfDingbats: ①❷➂➍✦❝❞",
59-
],
56+
frame=Frame(
57+
axes="WSen",
58+
xaxis=Axis(annot=True, tick=True, label="ISOLatin1: fi‰“”¥"),
59+
yaxis=Axis(annot=True, tick=True, label="Symbol: αβ∇∋∈"),
60+
title="ZapfDingbats: ①❷➂➍✦❝❞",
61+
),
6062
)
6163
return fig
6264

0 commit comments

Comments
 (0)