Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to color area between 2+ functions

y1 =(4-x)/2
y2 = 2 - 2*x
y3 = (-3+x)/2

plot([y1,y2,y3], (x,-1,6), ymax=10, ymin=-4,gridlines='minor')

I want to colorize the triangle formed by these 3 linear functions. How can I do that? fill = True just confuses the graph.