The command > contourplot(-1,x=0..1,y=0..1,contours=[0],filled=true); is supposed to fill the whole space with red (color for negative values) but it does nothing this is also problem once I need to define a piecewise function which is constant according to some condition, e.g. > f:=(x,y)->piecewise(x>1/2,x*y,-1); > contourplot(f(x,y),x=0..1,y=-1..1,contours=[0],filled=true); this should fill the entire half plane x>1/2 with red, it fills only part of the first quadrant...

Please Wait...