【发布时间】:2020-11-06 19:01:54
【问题描述】:
我需要帮助将这个图表转换成更美观和可读的东西吗?任何提示/帮助将不胜感激!
plt.figure()
plt.plot(df_date_count.index, df_date_count["customer_id"], c="black", label = "Customer ID")
plt.plot(df_date_count.index, np.linspace(trans_vol,trans_vol,n_points), c="r", label = "Mean transaction volume")
plt.title("ANZ Transaction Volume vs. Date")
plt.xlabel("Date")
plt.ylabel("Number of customers")
plt.legend()
plt.tight_layout()[enter image description here][1]
【问题讨论】:
标签: python pandas numpy matplotlib data-science