Skip to content

Commit eaad954

Browse files
authored
Merge pull request #26233 from rcomer/maria-stairs
DOC: replaced step with stairs in basic plot types
2 parents d6a2c01 + 93d208d commit eaad954

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

galleries/plot_types/basic/step.py renamed to galleries/plot_types/basic/stairs.py

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
11
"""
2-
==========
3-
step(x, y)
4-
==========
2+
==============
3+
stairs(values)
4+
==============
55
6-
See `~matplotlib.axes.Axes.step`.
6+
See `~matplotlib.axes.Axes.stairs`.
77
"""
88
import matplotlib.pyplot as plt
99
import numpy as np
1010

1111
plt.style.use('_mpl-gallery')
1212

1313
# make data
14-
x = 0.5 + np.arange(8)
1514
y = [4.8, 5.5, 3.5, 4.6, 6.5, 6.6, 2.6, 3.0]
1615

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

20-
ax.step(x, y, linewidth=2.5)
19+
ax.stairs(y, linewidth=2.5)
2120

2221
ax.set(xlim=(0, 8), xticks=np.arange(1, 8),
2322
ylim=(0, 8), yticks=np.arange(1, 8))

0 commit comments

Comments
 (0)