使用 astropy.visualization hist() 函数代替 matplotlib hist() 函数

Use of astropy.visualization hist() function instead of matplotlib hist() function

谁能告诉我如何用以下代码中 astropy.visualization 模块中的 hist() 函数替换 matplotlib hist() 函数:

Hist_SNR = plt.figure()
Hist_SNR, ax = plt.subplots(3, 1, sharex=True)
ax[0].hist(data1['SNR'], bins=10, normed=False)
ax[1].hist(data2['SNR'], bins=10, normed=False)
ax[2].hist(data3['SNR'], bins=10, normed=False)
plt.show();

根据 the documentation 你会替换

ax.hist(...)

来自

astropy.visualization.hist(..., ax=ax)