December 2018
Beginner to intermediate
682 pages
18h 1m
English
Sometimes, we may want to shade the area under the line plot with color for a greater visual impact. This can be achieved via the fill_between class:
fill_between(x, y1, y2=0, where=None, interpolate=False, step=None)
By default, fill_between shades the region between y=0 and the line when y2 is not specified. More complex shading behavior can be specified using the where, interpolate, and step keyword arguments. Readers can refer to the following link for more information: https://matplotlib.org/examples/pylab_examples/fill_between_demo.html.
Let's try to plot a more detailed chart by separating the two genders. We are going to explore the relative contribution of males and females towards the population ...