我正在使用 for 循环在同一个 pd.plot.scatterplot 上分散多个数据帧,但每次循环返回时都会打印一个颜色条。如何在循环结束时只有一个颜色条?
这是我的代码
if colormap is None: colormap='jet'
f,ax = plt.subplots()
for i, data in enumerate(wells):
data.plot.scatter(x,y, c=z, colormap=colormap, ax=ax)
ax.set_xlabel(x); ax.set_xlim(xlim)
ax.set_ylabel(y); ax.set_ylim(ylim)
ax.legend()
ax.grid()
ax.set_title(title)
