Skip to content

Commit 81b9429

Browse files
committed
Restore tests
1 parent 3f4945b commit 81b9429

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ultraplot/tests/test_legend.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,9 @@ def test_ref_with_manual_axes_no_subplotspec():
614614
ax1 = fig.add_axes([0.1, 0.1, 0.4, 0.4])
615615
ax2 = fig.add_axes([0.5, 0.1, 0.4, 0.4])
616616
ax1.plot([0, 1], [0, 1], label="line")
617+
# ref=[ax1, ax2]. loc='upper right' (inset).
618+
leg = fig.legend(ref=[ax1, ax2], loc="upper right")
619+
assert leg is not None
617620

618621

619622
def _decode_panel_span(panel_ax, axis):

0 commit comments

Comments
 (0)