Skip to content

Commit d82f4ba

Browse files
committed
Add a tests for passing a single value to offset
1 parent 7fc6ffc commit d82f4ba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pygmt/tests/test_params_position.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ def test_params_position_anchor_offset():
3030
assert str(Position((10, 20), type="mapcoords", offset=(1, 2))) == "g10/20+o1/2"
3131
pos = Position("TL", type="inside", anchor="MC", offset=("1c", "2c"))
3232
assert str(pos) == "jTL+jMC+o1c/2c"
33+
assert str(Position("TL", anchor="BR", offset=0.5)) == "jTL+jBR+o0.5"
3334

3435

3536
def test_params_position_invalid_location():

0 commit comments

Comments
 (0)