Transparency and 2-D graphics
2 views (last 30 days)
Show older comments
Hi,
When I read MATLAB documentation about transparency it refers to 3-D objects. Is it possible to make part of a 2-D object (eg. a normal distribution plot) transparent?
Many thanks,
Rob
0 Comments
Accepted Answer
the cyclist
on 3 Jul 2011
Yes. As a general rule, look for object properties that have a "alpha" as part of their name (e.g. FaceAlpha) to adjust the transparency.
If you post some code, I could try to be more specific on how to adjust transparency for a given object you are displaying.
2 Comments
KRUNAL
on 19 Aug 2014
The cyclist. I too am trying to obtain transparency for 2D plots. This is a sample code :
clc;
clear all;
x = linspace(0,10);
y1 = sin(x);
y2 = sin(5*x);
y3 = sin (0.5*x);
figure
subplot(2,1,1);
h = plot(x,y1)
hold on;
subplot(2,1,1);
h2 = plot(x,y3)
hold on;
subplot(2,1,2);
h1 = plot(x,y2)
Can you help me how to do it?
More Answers (0)
See Also
Categories
Find more on Line Plots in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!