How to solve this error:
File "rainbow.py", line 53, in plot_rainbow
xr[0],yr[0] = offset_curve(ax, x,y, lw/2.)
TypeError: \'range\' object do