Skip to content

Commit 5fb245b

Browse files
committed
Fix bar plot example
1 parent 29966d7 commit 5fb245b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/1dplots.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
# Plot by passing both x and y coordinates
101101
ax = axs[0]
102102
ax.area(x, -1 * y / N, stacked=True)
103-
ax.bar(x, y, linewidth=0, alpha=1, width=0.8 * (x[1] - x[0]))
103+
ax.bar(x, y, linewidth=0, alpha=1, width=0.8)
104104
ax.plot(x, y + 1, linewidth=2)
105105
ax.scatter(x, y + 2, marker='s', markersize=5**2)
106106
ax.format(title='Manual x coordinates')

0 commit comments

Comments
 (0)