Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 89452ce

Browse files
authored
Merge pull request #25797 from timhoffm/plot-types-data
Replace random values by hard-coded numbers in plot-types ...
2 parents e458cb2 + 714636e commit 89452ce

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

galleries/plot_types/basic/bar.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@
1111
plt.style.use('_mpl-gallery')
1212

1313
# make data:
14-
np.random.seed(3)
1514
x = 0.5 + np.arange(8)
16-
y = np.random.uniform(2, 7, len(x))
15+
y = [4.8, 5.5, 3.5, 4.6, 6.5, 6.6, 2.6, 3.0]
1716

1817
# plot
1918
fig, ax = plt.subplots()

galleries/plot_types/basic/stem.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@
1111
plt.style.use('_mpl-gallery')
1212

1313
# make data
14-
np.random.seed(3)
1514
x = 0.5 + np.arange(8)
16-
y = np.random.uniform(2, 7, len(x))
15+
y = [4.8, 5.5, 3.5, 4.6, 6.5, 6.6, 2.6, 3.0]
1716

1817
# plot
1918
fig, ax = plt.subplots()

galleries/plot_types/basic/step.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@
1111
plt.style.use('_mpl-gallery')
1212

1313
# make data
14-
np.random.seed(3)
1514
x = 0.5 + np.arange(8)
16-
y = np.random.uniform(2, 7, len(x))
15+
y = [4.8, 5.5, 3.5, 4.6, 6.5, 6.6, 2.6, 3.0]
1716

1817
# plot
1918
fig, ax = plt.subplots()

0 commit comments

Comments
 (0)