Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions ultraplot/tests/test_1dplots.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,19 @@ def test_column_iteration(rng):
return fig


@pytest.mark.skip("TODO")
@pytest.mark.mpl_image_compare
def test_bar_stack():
def test_bar_stack(rng):
"""
Test bar and area stacking.
"""
# TODO: Add test here
fig, axs = uplt.subplots(ncols=2, nrows=2)
x = np.arange(5)
y = rng.random((5, 3))
axs[0].bar(x, y, stack=False)
axs[1].bar(x, y, stack=True)
axs[2].area(x, y, stack=False)
axs[3].area(x, y, stack=True)
return fig


@pytest.mark.mpl_image_compare
Expand Down