From: Anamika on
Hello,

I want do an area plot for two sets of data on the same plot. Since there are regions which completely overlap, I would like to introduce transparency in one of them so that I can view the other as well through the 'sheer' layer. How can I do this?

Thanks,
Mika
From: Reid on
Mika,

I'm not an expert, but I don't think transparency is possible in MATLAB. What I've done in a similar situation is make a dense scatter plot for the surface / area. This would allow you to leave some space between points, creating a similar effect.

I'll be watching the replies to see if I'm wrong!!

Reid
From: Walter Roberson on
Anamika wrote:

> I want do an area plot for two sets of data on the same plot. Since
> there are regions which completely overlap, I would like to introduce
> transparency in one of them so that I can view the other as well through
> the 'sheer' layer. How can I do this?

area() returns a vector of hggroup objects. Each hggroup object has one child
object. Each of the child objects is a patch object. You can adjust the
transparency of those patch objects.
From: Steven_Lord on


"Reid " <rpulley(a)natc-ht.com> wrote in message
news:i3pcac$lm3$1(a)fred.mathworks.com...
> Mika,
>
> I'm not an expert, but I don't think transparency is possible in MATLAB.

Incorrect.

http://blogs.mathworks.com/steve/2009/02/18/image-overlay-using-transparency/

http://www.mathworks.com/access/helpdesk/help/techdoc/ref/alpha.html

http://www.mathworks.com/access/helpdesk/help/techdoc/visualize/f3-7434.html

*snip*

--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
To contact Technical Support use the Contact Us link on
http://www.mathworks.com