From 0e64e37b74002c2b964b2f272404c942500f20db Mon Sep 17 00:00:00 2001 From: Mavs Date: Fri, 5 Jan 2024 14:01:04 +0100 Subject: [PATCH] added test for canvas --- tests/test_plots.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_plots.py b/tests/test_plots.py index a48e79bcf..695eb7f5f 100644 --- a/tests/test_plots.py +++ b/tests/test_plots.py @@ -219,7 +219,7 @@ def test_canvas(): """Assert that the canvas works.""" atom = ATOMRegressor(X_reg, y_reg, random_state=1) atom.run("Tree") - with atom.canvas(1, 2, title="Title", display=False) as fig: + with atom.canvas(1, 2, sharex=True, sharey=True, title="Title", display=False) as fig: atom.plot_residuals(title={"text": "Residuals plot", "x": 0}) atom.plot_feature_importance(title="Feature importance plot") assert fig.__class__.__name__ == "Figure"