From ab5fb3eef8243e4b64f3d0cf30fce7f3ea825e03 Mon Sep 17 00:00:00 2001 From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Tue, 2 May 2023 00:36:12 +0200 Subject: [PATCH] Backport PR #25797: Replace random values by hard-coded numbers in plot-types ... --- plot_types/basic/bar.py | 3 +-- plot_types/basic/stem.py | 3 +-- plot_types/basic/step.py | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/plot_types/basic/bar.py b/plot_types/basic/bar.py index e23d27baa06c..1e6346fd56e8 100644 --- a/plot_types/basic/bar.py +++ b/plot_types/basic/bar.py @@ -10,9 +10,8 @@ plt.style.use('_mpl-gallery') # make data: -np.random.seed(3) x = 0.5 + np.arange(8) -y = np.random.uniform(2, 7, len(x)) +y = [4.8, 5.5, 3.5, 4.6, 6.5, 6.6, 2.6, 3.0] # plot fig, ax = plt.subplots() diff --git a/plot_types/basic/stem.py b/plot_types/basic/stem.py index 8e7b29283c01..a606482ecf9b 100644 --- a/plot_types/basic/stem.py +++ b/plot_types/basic/stem.py @@ -11,9 +11,8 @@ plt.style.use('_mpl-gallery') # make data -np.random.seed(3) x = 0.5 + np.arange(8) -y = np.random.uniform(2, 7, len(x)) +y = [4.8, 5.5, 3.5, 4.6, 6.5, 6.6, 2.6, 3.0] # plot fig, ax = plt.subplots() diff --git a/plot_types/basic/step.py b/plot_types/basic/step.py index 558550a5c498..6044262e6d1f 100644 --- a/plot_types/basic/step.py +++ b/plot_types/basic/step.py @@ -11,9 +11,8 @@ plt.style.use('_mpl-gallery') # make data -np.random.seed(3) x = 0.5 + np.arange(8) -y = np.random.uniform(2, 7, len(x)) +y = [4.8, 5.5, 3.5, 4.6, 6.5, 6.6, 2.6, 3.0] # plot fig, ax = plt.subplots()