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.
Do you want to do this just for linear functions? In that case I would just determine the intersection points and draw the triangle as a polygon.
I'm studying linear programming and this is just perfect! Exactly what I was looking for.
Thank you very much!