Colormap for errorbars in x-y scatter plot using matplotlib

前端 未结 4 1283
情书的邮戳
情书的邮戳 2020-12-06 05:28

I have a time series of data for which I have the quantity, y, and its error, yerr. I would now like to create a plot that shows y against phase (i.e. time / period % 1) wit

4条回答
  •  青春惊慌失措
    2020-12-06 05:57

    You may use the ecolor optional argument in pylab.errorbar as you use the color argument in pylab.scatter:

    pylab.errorbar( phase, y, yerr=err, fmt=None, marker=None, mew=0, ecolor=time )
    

提交回复
热议问题