Skip to content

Commit 20300a4

Browse files
committed
added baseline image for histogram creation
1 parent 2c95034 commit 20300a4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

baseline/test_feature_histogram2.png

12.6 KB
Loading

src/napari_matplotlib/tests/test_histogram.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ def test_feature_histogram(make_napari_viewer):
6969
viewer.layers.selection.add(viewer.layers[1])
7070
assert_figures_equal(widget.figure, fig1)
7171

72+
7273
@pytest.mark.mpl_image_compare
7374
def test_feature_histogram2(make_napari_viewer):
7475
import numpy as np
@@ -92,8 +93,9 @@ def test_feature_histogram2(make_napari_viewer):
9293

9394
widget = FeaturesHistogramWidget(viewer)
9495
viewer.window.add_dock_widget(widget)
96+
widget._set_axis_keys("feature1")
9597

96-
fig = HistogramWidget(viewer).figure
98+
fig = FeaturesHistogramWidget(viewer).figure
9799
return deepcopy(fig)
98100

99101

0 commit comments

Comments
 (0)