Search code examples
colorsmaple

Color region with implicit plots in Maple


Using the package implicit plots how do I color the region under the line 2*x-y=4 and 2*x+y=4.

with(plots, implicitplot): implicitplot([x=5/2,2*x-y=4,2*x+y=4,3/2*x-2*y=7/4],x=1.5..2.6,y=0..1.5);


Solution

  • with(plots, implicitplot):
    
    plots:-display(
      implicitplot([2*x-y>4,2*x+y<4],
                   x=1.5..2.6,y=0..1.5,filledregions),
      implicitplot([x=5/2,2*x-y=4,2*x+y=4,3/2*x-2*y=7/4],
                   x=1.5..2.6,y=0..1.5)
    

    );

    enter image description here