Skip to content

Commit 1785fff

Browse files
committed
add labelloc to inset tests
1 parent 28541d1 commit 1785fff

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ultraplot/tests/test_colorbar.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ def test_colorbar_label_no_labelloc(loc):
494494

495495

496496
@pytest.mark.parametrize(
497-
("loc", "orientation"),
497+
("loc", "orientation", "labelloc"),
498498
product(
499499
[
500500
"upper left",
@@ -503,16 +503,18 @@ def test_colorbar_label_no_labelloc(loc):
503503
"lower right",
504504
],
505505
["horizontal", "vertical"],
506+
["left", "right", "top", "bottom"],
506507
),
507508
)
508-
def test_inset_colorbar_orientation(loc, orientation):
509+
def test_inset_colorbar_orientation(loc, orientation, labelloc):
509510
""" """
510511
cmap = uplt.Colormap("viko")
511512
fig, ax = uplt.subplots()
512513
ax.colorbar(
513514
cmap,
514515
loc=loc,
515516
orientation=orientation,
517+
labellocation=labelloc,
516518
label="My Label",
517519
)
518520
found = False

0 commit comments

Comments
 (0)