barak.plot.shade_to_line¶
- barak.plot.shade_to_line(xvals, yvals, blend=1, ax=None, y0=0, color='b')[source]¶
Shade a region between two curves including a color gradient.
Parameters : xvals, yvals : array_like
Vertically shade to the line given by xvals, yvals
y0 : array_like
Start shading from these y values (default 0).
blend : float (default 1)
Start the cmap blending to white at this distance from yvals.
color : mpl color
Color used to generate the color gradient.
Returns : im : mpl image object
object represeting the shaded region.