How to plot individual points without curve in python?
问题 I want to plot individual data points with error bars on a plot, but I don't want to have the curve. How can I do this? Are there some 'invisible' line style or can I set the line style colourless (but the marker still has to be visible)? So this is the graph I have right now: plt.errorbar(x5,y5,yerr=error5, fmt='o') plt.errorbar(x3,y3,yerr=error3, fmt='o') plt.plot(x3_true,y3_true, 'r--', label=(r'$\lambda = 0.3$')) plot(x5_true, y5_true, 'b--', label=(r'$\lambda = 0.5$')) plt.plot(x5,y5,