I need to make publication quality plots showing domains in parameter space bounded by various inequalities (f1(x,y)>0, f2(x,y)>0, ...) where some regions will satisfy several inequalities and should have blended flat colours.
There are various proposed methods of making inequality plots, but none of them seem to produce a great result:
- Using a meshgrid with imagesc will introduce jagged edges (unless I use a ridiculously large matrix to reach print resolution).
- Contourf(x,y,f1,[0 0]) and hold on almost gets what I want, except that it is apparently impossible to give the contoured regions transparency.
- Using surf(x,y,f1), a white z=0 plane for clipping, and view(0,90) also looks good and enables transparency, but were I to plot two or more inequalities artefacts are introduced since the colour is different if f1(x,y)>f2(x,y) or f2(x,y)>f1(x,y).
- Stacking axes on top of each other with the previous method fails since the clipping plane is not transparent.
- Taking the countour matrix and filling using fill(C(1,:),C(2,:)) runs into trouble when the countour reaches the edge of the axes on two sides, since now 1,2, or even 3 corner points are lacking and the fill curve will be closed by a straight line crossing the image.
Anybody know a way of achieving this? Either by making transparent contourf regions, surfaces whose colours combine in the same way regardless of ordering, a way of z-clipping surfaces using a transparent clipping plane, or an algorithm that adds the necessary extra edge points to the fill contour.