Как создать вертикальную гистограмму. Есть ли какой-нибудь вариант для этого или он должен быть построен с нуля? Я хочу, чтобы верхний график выглядел как внизу, но по вертикальной оси!
from matplotlib import pyplot as plt
import numpy as np
sample=np.random.normal(size=10000)
vert_hist=np.histogram(sample,bins=30)
ax1=plt.subplot(2,1,1)
ax1.plot(vert_hist[0],vert_hist[1][:-1],'*g')
ax2=plt.subplot(2,1,2)
ax2.hist(sample,bins=30)
plt.show()