简体   繁体   English

关于时间序列在 X 轴上的重叠

[英]About overlapping of Time Series on X-axis

I have plotted the timeseries of 5 min on x-axis but it's getting overlapped.我在 x 轴上绘制了 5 分钟的时间序列,但它正在重叠。 Can you suggest the updates to be made?您能建议要进行的更新吗? given below is my output下面给出的是我的 output

在此处输入图像描述

given below is my code:下面给出的是我的代码:

plt.plot(s1[0:289]['Timeseries'],s1[0:5762][' CCN Number Conc'])
plt.xlabel("Time In Minutes")
plt.xticks(rotation=90)
plt.ylabel("Cloud Condensation Number")
plt.title("cloud Condensation Number Vs TimeSeries(5min)")
plt.tight_layout()
plt.show()

Try using this:尝试使用这个:

plt.setp(ax.get_xticklabels(), rotation=30, horizontalalignment='right')
fig.tight_layout()
# you can play around with rotation. 

Second way:第二种方式:

fig.autofmt_xdate()

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM