Changing dot size with Matplotlib error bar

  errorbar, matplotlib, python

I am plotting x,y data (L_vals,mean_t) in this case…how can I change the size of the black dots (data points)?

fig, ax = plt.subplots()


ax.errorbar(L_vals, mean_t,
            xerr=0,
            yerr=var_t,
            fmt='-o',capsize =2, linewidth = .5, c = 'black',ecolor = 'red',elinewidth = 2)


ax.set_xlabel('L')
ax.set_ylabel('Tau')

enter image description here

Source: Python Questions

LEAVE A COMMENT