fill_between_wrapper

fill_between_wrapper(self, func, *args, **kwargs)[source]

Wraps fill_between, also accessible via the area alias.

Parameters
  • *args ((y1,), (x,y1), or (x,y1,y2)) – The x and y coordinates. If x is not provided, it will be inferred from y1. If y1 and y2 are provided, their shapes must be identical, and we fill between respective columns of these arrays.

  • stacked (bool, optional) – If y2 is None, this indicates whether to “stack” successive columns of the y1 array.

  • negpos (bool, optional) – Whether to shade where y2 is greater than y1 with the color poscolor, and where y1 is greater than y2 with the color negcolor. For example, to shade positive values red and negtive blue, use ax.fill_between(x, 0, y).

  • negcolor, poscolor (color-spec, optional) – Colors to use for the negative and positive values. Ignored if negpos is False.

  • where (ndarray, optional) – Boolean ndarray mask for points you want to shade. See this example.

  • **kwargs – Passed to fill_between.