您好我有以下代码使用某些数字创建直方图,但我需要创建另一个饼图。
m_values, m_base = np.histogram(mitotic_T, bins=15)
d_values, d_base = np.histogram(death_T, bins=15)
#evaluate the cumulative
plt.title('TPT GRAPH')
m_cumulative = np.cumsum(m_values)
d_cumulative = np.cumsum(d_values)
plt.plot(m_base[:-1], m_cumulative, c='green')
plt.plot(d_base[:-1], d_cumulative, c='red')
plt.show()