gramm
gramm copied to clipboard
color part of the background
Hi
is there a way to color part of the background, using the equivalent of area
or patch
?
e.g.
figure;scatter(rand(100,1),rand(100,1))
vert = [0 0;1 1;0 1]; % x and y vertex coordinates
patch('Faces',fac,'Vertices',vert,'FaceAlpha',.5,'FaceColor','g');
vert = [0 0;1 1;1 0]; % x and y vertex coordinates
patch('Faces',fac,'Vertices',vert,'FaceAlpha',.5,'FaceColor','r');
thanks!