fill_between_wrapper¶
- fill_between_wrapper(self, func, *args, **kwargs)[source]¶
Supports overlaying and stacking successive columns of data, and permits using different colors for “negative” and “positive” regions.
Note
This function wraps
fill_between
andarea
.- Parameters
*args ((y1,), (x, y1), or (x, y1, y2)) – The x and y coordinates. If
x
is not provided, it will be inferred fromy1
. Ify1
andy2
are provided, this function will shade between respective columns of the arrays. The default value fory2
is0
.stacked (bool, optional) – Whether to “stack” successive columns of the
y1
array. If this isTrue
andy2
was provided, it will be ignored.negpos (bool, optional) – Whether to shade where
y1
is greater thany2
with the colorposcolor
, and wherey1
is less thany2
with the colornegcolor
. For example, to shade positive values red and negative values blue, useax.fill_between(x, y, negpos=True)
.negcolor, poscolor (color-spec, optional) – Colors to use for the negative and positive shaded regions. Ignored if
negpos
isFalse
. Defaults arerc.negcolor
='blue7'
andrc.poscolor
='red7'
.where (ndarray, optional) – Boolean ndarray mask for points you want to shade. See this example.
lw, linewidth (float, optional) – The edge width for the area patches.
edgecolor (color-spec, optional) – The edge color for the area patches.
- Other Parameters
**kwargs – Passed to
fill_between
.