是否必须通过“ create_model”函数以某种方式将变量放入图形中?
我正在尝试这种事情:
import numpy as np
import matplotlib.pyplot as plt
data = [10,20,20,30,30,30,40,40,50,50]
plt.hist(data, bins='auto', alpha=1)
plt.grid()
plt.plot(np.unique(data, return_counts=True)[0],np.unique(data, return_counts=True)[1])