bebi103.viz.fill_between

bebi103.viz.fill_between(x1=None, y1=None, x2=None, y2=None, show_line=True, patch_kwargs=None, line_kwargs=None, p=None, **kwargs)

Create a filled region between two curves.

Parameters
  • x1 (array_like) – Array of x-values for first curve

  • y1 (array_like) – Array of y-values for first curve

  • x2 (array_like) – Array of x-values for second curve

  • y2 (array_like) – Array of y-values for second curve

  • show_line (bool, default True) – If True, show the lines on the edges of the fill.

  • patch_kwargs (dict, defaukt None) – Any kwargs passed into p.patch(), which generates the fill.

  • line_kwargs (dict, default None) – Any kwargs passed into p.line() in generating the line around the fill.

  • p (bokeh.plotting.Figure instance, or None (default)) – If None, create a new figure. Otherwise, populate the existing figure p.

  • kwargs – All other kwargs are passed to bokeh.plotting.figure() in creating the figure.

Returns

output – Plot populated with fill-between.

Return type

bokeh.plotting.Figure instance