fill_betweenx_extras¶
- fill_betweenx_extras(self, *args, **kwargs)[source]¶
Support overlaying and stacking successive columns of data, and permits using different colors for “negative” and “positive” regions.
Important
This function wraps
fill_betweenx
andareax
.- Parameters
*args ((x1,), (y, x1), or (y, x1, x2)) – The y and x coordinates. If
y
is not provided, it will be inferred fromx1
. Ifx1
andx2
are provided, this function will shade between these points. Ifx1
orx2
are 2D, this function is called with each column. The default value forx2
is0
.stack, stacked (bool, optional) – Whether to “stack” successive columns of the
x1
array. If this isTrue
andx2
was provided, it will be ignored.negpos (bool, optional) – Whether to shade where
x1 >= x2
withposcolor
and wherex1 < x2
withnegcolor
. For example, to shade positive values red and negative values blue, simply useax.fill_betweenx(y, x, 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
.