Skip to content

Commit ff85ab8

Browse files
committed
test(show): visual test for xlabel/ylabel
1 parent 7922d9e commit ff85ab8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/pl/test_show.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ class TestShow(PlotTester, metaclass=PlotTesterMeta):
2929
def test_plot_pad_extent_adds_padding(self, sdata_blobs: SpatialData):
3030
sdata_blobs.pl.render_images(element="blobs_image").pl.show(pad_extent=100)
3131

32+
def test_plot_xlabel_ylabel(self, sdata_blobs: SpatialData):
33+
"""Visual test: xlabel/ylabel label the axes (feature for #763)."""
34+
sdata_blobs.pl.render_images(element="blobs_image").pl.show(xlabel="x (µm)", ylabel="y (µm)")
35+
3236
def test_plot_frameon_false_single_panel(self, sdata_blobs: SpatialData):
3337
"""Visual test: frameon=False hides axes decorations on a single panel (regression for #204)."""
3438
sdata_blobs.pl.render_images(element="blobs_image").pl.show(frameon=False)

0 commit comments

Comments
 (0)