diff --git a/plot_serializer/matplotlib/serializer.py b/plot_serializer/matplotlib/serializer.py index c77509009f942dbcdab538d0687eec22a4aabe89..957c4fed112fad63f44bb10d87501be85493fb61 100644 --- a/plot_serializer/matplotlib/serializer.py +++ b/plot_serializer/matplotlib/serializer.py @@ -22,7 +22,7 @@ from matplotlib.lines import Line2D from matplotlib.patches import Polygon from mpl_toolkits.mplot3d.art3d import Path3DCollection, Poly3DCollection from mpl_toolkits.mplot3d.axes3d import Axes3D as MplAxes3D -from numpy import isin, ndarray +from numpy import ndarray from plot_serializer.model import ( Axis, diff --git a/tests/test_hist_plot.py b/tests/test_hist_plot.py index d7f3c51001278dca125291620ad31ef914235485..4beebfc4482ca32376a570bfc572f9d98d187481 100644 --- a/tests/test_hist_plot.py +++ b/tests/test_hist_plot.py @@ -109,6 +109,9 @@ def test_hist_plot( update_tests = request.config.getoption("--update-tests") _, ax = serializer.subplots() + if bins is None and cumulative is None and density is None: + # giving arguments the none value throws errors, might need a test overhaul overall + ax.hist(x) ax.hist( x, bins=bins, @@ -126,7 +129,7 @@ def test_hist_plot( ax.set_ylabel(ylabel) if metadata: - ax.hist(x, bins=bins, color=color, label=label, cumulative=cumulative, density=density) + ax.hist(x) serializer.add_custom_metadata_figure(metadata) serializer.add_custom_metadata_plot(metadata, plot_selector=0) serializer.add_custom_metadata_axis(metadata, axis="y", plot_selector=0)