matplotlib.axes.Axes.fill
- Axes.fill(*args, data=None, **kwargs)
Plot filled polygons.
Plot filled polygons.
matplotlib.colorsYou can plot multiple polygons by providing multiple x, y, [color] groups.
For example, each of the following is legal:
ax.fill(x, y) # a polygon with default color
ax.fill(x, y, "b") # a blue polygon
ax.fill(x, y, x2, y2) # two polygons
ax.fill(x, y, "b", x2, y2, "r") # a blue and a red polygon
An object with labelled data. If given, provide the label names to plot in x and y, e.g.:
ax.fill("time", "signal",
data={"time": [0, 1, 2], "signal": [0, 1, 0]})
PolygonPolygon propertiesUse fill_between() if you would like to fill the region between
two curves.
matplotlib.axes.Axes.fill