From 8da5976eb8e8b15b282f50b8205242059decd932 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20H=C3=B8xbro=20Hansen?= Date: Sun, 5 Jan 2025 16:50:04 +0100 Subject: [PATCH] compat: Scipy 1.15 --- examples/gallery/demos/bokeh/histogram_example.ipynb | 2 +- examples/gallery/demos/matplotlib/histogram_example.ipynb | 2 +- examples/user_guide/11-Transforming_Elements.ipynb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/gallery/demos/bokeh/histogram_example.ipynb b/examples/gallery/demos/bokeh/histogram_example.ipynb index 461b6941ca..e8bb6098d0 100644 --- a/examples/gallery/demos/bokeh/histogram_example.ipynb +++ b/examples/gallery/demos/bokeh/histogram_example.ipynb @@ -89,7 +89,7 @@ "\n", "x = np.linspace(0, 1, 1000)\n", "pdf = x**(alpha-1) * (1-x)**(beta-1) / scipy.special.beta(alpha, beta)\n", - "cdf = scipy.special.btdtr(alpha, beta, x)\n", + "cdf = scipy.special.betainc(alpha, beta, x)\n", "beta = get_overlay(hist, x, pdf, cdf, label)\n", "\n", "\n", diff --git a/examples/gallery/demos/matplotlib/histogram_example.ipynb b/examples/gallery/demos/matplotlib/histogram_example.ipynb index 50f284718d..c80065e0cc 100644 --- a/examples/gallery/demos/matplotlib/histogram_example.ipynb +++ b/examples/gallery/demos/matplotlib/histogram_example.ipynb @@ -91,7 +91,7 @@ "\n", "x = np.linspace(0, 1, 1000)\n", "pdf = x**(alpha-1) * (1-x)**(beta-1) / scipy.special.beta(alpha, beta)\n", - "cdf = scipy.special.btdtr(alpha, beta, x)\n", + "cdf = scipy.special.betainc(alpha, beta, x)\n", "beta = get_overlay(hist, x, pdf, cdf, label)\n", "\n", "\n", diff --git a/examples/user_guide/11-Transforming_Elements.ipynb b/examples/user_guide/11-Transforming_Elements.ipynb index 1a8ced63a6..ccf6af3b4f 100644 --- a/examples/user_guide/11-Transforming_Elements.ipynb +++ b/examples/user_guide/11-Transforming_Elements.ipynb @@ -503,7 +503,7 @@ "source": [ "hv.output(backend='matplotlib', size=200)\n", "\n", - "from scipy.misc import ascent\n", + "from scipy.datasets import ascent\n", "\n", "stairs_image = hv.Image(ascent()[200:500, :], bounds=[0, 0, ascent().shape[1], 300], label=\"stairs\")\n", "stairs_image"