transparentScatter

Flexible tool for making scatterplots with transparent points
489 Downloads
Updated 20 Mar 2015

View License

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
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Scatter Plots in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.1.0.0

changed description

1.0.0.0