Skip to content

Commit b1e7f31

Browse files
Add test_basemap_map_scale() in test_basemap.py (#739)
1 parent 654b7b4 commit b1e7f31

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

pygmt/tests/test_basemap.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,14 @@ def test_basemap_compass():
102102
fig_test.coast(region=[127.5, 128.5, 26, 27], shorelines="1/0.5p")
103103
fig_test.basemap(compass="jBR+w5c+d11.5")
104104
return fig_ref, fig_test
105+
106+
107+
@check_figures_equal()
108+
def test_basemap_map_scale():
109+
"Create a map with coast and use basemap to add a map scale"
110+
fig_ref, fig_test = Figure(), Figure()
111+
fig_ref.coast(R="127.5/128.5/26/27", W="1/0.5p")
112+
fig_ref.basemap(L="jMB+c1+w10k+l+f")
113+
fig_test.coast(region=[127.5, 128.5, 26, 27], shorelines="1/0.5p")
114+
fig_test.basemap(map_scale="jMB+c1+w10k+f+l")
115+
return fig_ref, fig_test

0 commit comments

Comments
 (0)