transparentScatter
Finally, an easy-to-use tool for plotting points with transparency! This tool is ideal for when you have too many points for a traditional plot() call, or when you just want your plots to look sexy!
Supports multiple colors, sizes, opacities, and even different shapes.
Edit 3/19/15: This approach is only recommended for versions ≤ 2014a. There is a much easier and more stable way to do this in 2014b:
x=randn(100,1)'; y=randn(100,1)';
hLine=plot(x,y,'o');
hLine.MarkerSize = 20;
hLine.MarkerFaceColor = [0.5,0.5,0.5];
hLine.MarkerEdgeColor = 'none';
drawnow
hLine.MarkerHandle.FaceColorData = uint8(255*[1;0;0;0.3]);
Cite As
Ben Dichter (2024). transparentScatter (https://www.mathworks.com/matlabcentral/fileexchange/47701-transparentscatter), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.