diff --git a/examples/plot_03_cross_validate.py b/examples/plot_03_cross_validate.py index 7a02f65a4..1a420b31a 100644 --- a/examples/plot_03_cross_validate.py +++ b/examples/plot_03_cross_validate.py @@ -36,3 +36,18 @@ cv_results = cross_validate(lasso, X, y, cv=3, project=my_project_gs) my_project_gs.get_item("cross_validation").plot + +# %% +# Because Plotly graphs currently do not yet properly render in our docs engine due to `a bug in Plotly `_, +# we also show a screenshot below. +# Alternatively, if you zoom in or out in your browser window, the Plotly graph should display properly again. + +import matplotlib.pyplot as plt +import matplotlib.image as mpimg + +img = mpimg.imread("plot_03_cross_validate_plot_screenshot.png") +fig, ax = plt.subplots() +# fig.tight_layout(pad=0.01) +fig.subplots_adjust(left=0.01, right=0.99, bottom=0.01, top=0.99) +ax.axis("off") +ax.imshow(img) diff --git a/examples/plot_03_cross_validate_plot_screenshot.png b/examples/plot_03_cross_validate_plot_screenshot.png new file mode 100644 index 000000000..a83c66ba9 Binary files /dev/null and b/examples/plot_03_cross_validate_plot_screenshot.png differ