How to create a patch/shape with a color gradient in a simple 2d plot?


Here’s the output corresponding to the above MWE.
Besides the issues stated above, one problem is that, along the upper edge, one would explain a gradient from -1.0 to 3.0, but there is no color corresponding to this range along that edge. Would anyone has a hint? Cheers!