matplotlib.pyplot.fill_betweenx(y, x1, x2=0, where=None, step=None, interpolate=False, hold=None, data=None, **kwargs)¶Make filled polygons between two horizontal curves.
Create a PolyCollection
filling the regions between x1 and x2 where
where==True
| Parameters: | y : array
x1 : array
x2 : array, optional
where : array, optional
step : {‘pre’, ‘post’, ‘mid’}, optional
interpolate : bool, optional
|
|---|
See also
Notes
PolyCollectionkwargs control the Polygon properties:
Property Description agg_filtera filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array alphafloat or None animatedbool antialiasedor antialiasedsBoolean or sequence of booleans arrayndarray clima length 2 sequence of floats clip_boxa Bboxinstanceclip_onbool clip_path[( Path,Transform) |Patch| None]cmapa colormap or registered colormap name colormatplotlib color arg or sequence of rgba tuples containsa callable function edgecoloror edgecolorsmatplotlib color spec or sequence of specs facecoloror facecolorsmatplotlib color spec or sequence of specs figurea Figureinstancegidan id string hatch[ ‘/’ | ‘' | ‘|’ | ‘-‘ | ‘+’ | ‘x’ | ‘o’ | ‘O’ | ‘.’ | ‘*’ ] labelobject linestyleor dashes or linestyles[‘solid’ | ‘dashed’, ‘dashdot’, ‘dotted’ | (offset, on-off-dash-seq) | '-'|'--'|'-.'|':'|'None'|' '|'']linewidthor linewidths or lwfloat or sequence of floats normNormalizeoffset_position[ ‘screen’ | ‘data’ ] offsetsfloat or sequence of floats path_effectsAbstractPathEffectpicker[None | bool | float | callable] pickradiusfloat distance in points rasterizedbool or None sketch_params(scale: float, length: float, randomness: float) snapbool or None transformTransformurla url string urlsList[str] or None visiblebool zorderfloat