Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered 13 years ago

DSM gravatar image

If I'm understanding you correctly, then one way to do this is to take advantage of the fact you can add plots:

sage: f = x*(x-1)*(x-2)+1
sage: p = plot(f, 0.5, 1.5, fill=True) + plot(f, 0, 2)
sage: show(p)

partly shaded picture