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

Skip to content

Commit ec82656

Browse files
authored
Merge pull request #20561 from timhoffm/plot-types-hist
Fix limits in plot types example hist(x)
2 parents 40f54bc + 7daa791 commit ec82656

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plot_types/stats/hist_plot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
ax.hist(x, bins=8, linewidth=0.5, edgecolor="white")
2121

2222
ax.set(xlim=(0, 8), xticks=np.arange(1, 8),
23-
ylim=(0, 8), yticks=np.arange(1, 8))
23+
ylim=(0, 56), yticks=np.linspace(0, 56, 9))
2424

2525
plt.show()

0 commit comments

Comments
 (0)