I want to plot a scatterplot, but set the x-label limits.
axScatter = plt.subplot(111)
axScatter.scatter(x=mean_var_r["Variance"],y=mean_var_r["Mean"])
xlim = [-0.003, 0.003]
plt.xlim(xlim)
plt.show()
For some reason, I get the error, that the list object is not callable. I am well aware, that the question was asked before here: list not callable for plot, but unfortunately, the solution does not work for me. Is there another way?
Thanks and happy coding
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…