Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Fill between two curves

I am attempting to fill the area between two curves. To more clearly illustrate what I am trying to accomplish, I would like to represent the area of the following integral:

integrate x-x^2 from 0 to 1

I can currently show the area under x with fill=True, but this is not what I want. What I want is for the fill to extend only to x^2 rather than all the way down to the x axis.