Skip to content

Commit

Permalink
add a test for 1d histogram plotting
Browse files Browse the repository at this point in the history
  • Loading branch information
lazigu committed Mar 29, 2023
1 parent 980c78f commit cd9063f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions napari_clusters_plotter/_tests/test_plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cd9063f

Please sign in to comment.