Skip to content

Commit

Permalink
added test for canvas
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdboom committed Jan 5, 2024
1 parent a789b0f commit 0e64e37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 0e64e37

Please sign in to comment.