因此,我在同一个轴上绘制两个数据帧:
dataframe1.plot(ax=ax1, marker='o', linestyle='None')
dataframe1fit.plot(ax=ax1, legend=False)仅为第一个数据帧提供图例,但不在图例中显示任何标记(图例仅包含文本),因此,如果我将:
ax1.legend(numpoints=1)标记将添加到图例中,但dataframe1fit绘图的图例条目也可见(legend=False无效)。那么,对于绘制的其他数据帧,如何在ax1上设置图例参数而不影响图例的可见性?
发布于 2016-07-27 01:03:26
dataframe1fit.plot(ax=ax1,legend=None)
https://stackoverflow.com/questions/38594299
复制相似问题