Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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