我的绘图上似乎有一条随机的垂直线,我不确定如何删除它。这是创建绘图的代码:
import pandas as pd
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns; sns.set()
fig = plt.figure()
df=pd.read_csv("Resources/outmerge.csv")
print(df.head())
x='month'
y ='Count'
sns.set_style("dark", {'axes.grid' : False})
ax = sns.lineplot('month', 'Count', data=df, marker='o',markersize=8,markers=True, label='2017')
ax = sns.lineplot('month', 'Count2', data=df, marker='^',markersize=8,markers=True, label='2018')
ax.grid(False)
fname='Resources/output.png'
plt.savefig(fname, dpi=300)
plt.show()