我想用matplotlib和seaborn创建一个平滑的折线图。折线图应包含两条线,一条表示direction等于1,另一条表示direction等于2。X轴为hour,Y轴为hourly_avg_count。import seaborn as snsimport matplotlib.pyplot as plt
plt.figure
Group G1 G2 6 19 1我已经在折线图中画出了上面的数据框。但我无法将图例和标题添加到折线图中。此外,我还试图增加折线图的大小,因为它看起来非常小。不确定matplotlib中是否有这些选项。任何帮助都将不胜感激。import matplotlib.pyplot as pltplt.xlabel('Hour')
plt.ylabel('Count'