From cd9063fd0db49716c00b57e7eb30e2dfe54e1922 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20=C5=BDigutyt=C4=97?= Date: Wed, 29 Mar 2023 20:30:48 +0200 Subject: [PATCH] add a test for 1d histogram plotting --- napari_clusters_plotter/_tests/test_plotter.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/napari_clusters_plotter/_tests/test_plotter.py b/napari_clusters_plotter/_tests/test_plotter.py index c3e714b3..4e8a2ac6 100644 --- a/napari_clusters_plotter/_tests/test_plotter.py +++ b/napari_clusters_plotter/_tests/test_plotter.py @@ -169,6 +169,16 @@ def test_plotting_histogram(make_napari_viewer): assert plotter_widget.graphics_widget.axes.has_data() + # test plotting 1D histogram + plotter_widget.run( + features=pd.DataFrame(measurements), + plot_x_axis_name="area", + plot_y_axis_name="area", + force_redraw=True, + ) + + assert plotter_widget.graphics_widget.axes.has_data() + def test_cluster_image_generation_for_histogram(make_napari_viewer): from napari_clusters_plotter._plotter import PlotterWidget