我有一个简单的刻面网格,4行1列,带有线图,表示刻面的不同类别-下图。你知道吗
#lineplot for each Category over the last three years
g = sns.FacetGrid(dataframe, row="Category", sharey=False, sharex=False, height=2.5, aspect = 3)
g = g.map(plt.plot, 'CREATED_DATE', 'COUNT')
如何添加一条显示每个面平均计数的参考线?你知道吗
Tags:
可以在每个轴上手动绘制水平线:
输出:
只要一行就够了
要使线变成橙色和虚线并添加注释,可以执行以下操作
相关问题 更多 >
编程相关推荐