transparent plot
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Ian
el 22 de Abr. de 2011
Comentada: José-Luis
el 23 de Oct. de 2014
Hi, Is there any way to make the dots that appear in a plot transparent? an example of what i would like to do is
plot(x,y, 'color', [1 0 0], 'alpha', 0.5)
0 comentarios
Respuesta aceptada
Matt Fig
el 22 de Abr. de 2011
Not with a line object, but you can use an old graphics 'trick' to get it done:
% Your data...
x = 1:10;
y = x.^2;
% Now make the 'line' (actually a surface)...
z = zeros(size(x));
S = surface([x;x],[y;y],[z;z],...
'facecol','no',...
'edgecol','interp',...
'linew',2,...
'edgealpha',.2,...
'edgecolor','b');
3 comentarios
Jeffrey Girard
el 23 de Oct. de 2014
This worked well for me Ian, thank you. However, I was hoping to plot the dots as circles rather than rectangles. Do you have a trick on how to do so?
Más respuestas (0)
Ver también
Categorías
Más información sobre Lighting, Transparency, and Shading en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!