matplotlib.pyplot.fill_between(x, y1, y2=0, where=None, interpolate=False, step=None, hold=None, data=None, **kwargs)¶Make filled polygons between two curves.
Create a PolyCollection
filling the regions between y1 and y2 where
where==True
| Parameters: | x : array
y1 : array
y2 : array
where : array, optional
interpolate : bool, optional
step : {‘pre’, ‘post’, ‘mid’}, optional
|
|---|
See also
Notes
Additional Keyword args passed on to the
PolyCollection.
kwargs 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
matplotlib.pyplot.fill_between¶