仅当创建1个时出现2个绘图图
我正在尝试在行图中绘制数据框架并自定义标签,标题等。但是,它似乎创建了一个空图。
plot_df= plt.plot(df)
plt.figure(figsize=(30,8))
plt.title("TITLE.", fontsize=24)
plt.xticks(rotation=30, horizontalalignment="center", fontsize=16)
plt.yticks(fontsize=16)
plt.xlabel("X", fontsize=21, labelpad=12)
plt.ylabel("Y", fontsize=21, labelpad=8)
display(plot_df)
I'm trying to plot a data frame in a line graph and customise the labels, title, etc. However, it seems to create an empty diagram instead.
plot_df= plt.plot(df)
plt.figure(figsize=(30,8))
plt.title("TITLE.", fontsize=24)
plt.xticks(rotation=30, horizontalalignment="center", fontsize=16)
plt.yticks(fontsize=16)
plt.xlabel("X", fontsize=21, labelpad=12)
plt.ylabel("Y", fontsize=21, labelpad=8)
display(plot_df)
So the question here is, how do I customise the intended plot without conjuring up an empty one?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论