How can I make markers transparent?
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I am seriously wondering how to plot markers with transparency in MATLAB. In the case of tight clusters of datapoints that are drawn on top of each other, I want to get a feeling for both density as well as being able to determine when two clusters overlap. There are certainly other applications too where marker transparency is desired. However, to the best of my knowledge, marker transparency in plots is still not supported. This question has been showing up a couple of times, yet none of the answers is satisfying my needs.
I would like to know whether there are any plans to add marker transparency as a feature to MATLAB, or whether there is an established workaround that robustly deals even if the plot shows thousands of datapoints.
1 Commento
Daniel Shub
il 28 Mar 2013
Only TMW can tel you if they plan on implementing something (and they likely won't). That said, the chances that they will implement something increase if you let them know what you want.
Risposte (2)
Sean de Wolski
il 28 Mar 2013
First, it sounds like you might want to use a 2d histogram or other plot type that is more designed for visualizing density.
Second, you can submit an enhancement request!
A simple work around is to write your own marker class that uses patches and sets their 'FaceAlpha' to the transparency level you want.
3 Commenti
Sean de Wolski
il 28 Mar 2013
Look at Oleg's suggestion. I think a regular scatter plot is the wrong visualization for what you are trying to do. You want to visualize density, so use a plot type that is specific for density rather than just clogging the screen.
Also, 7000 patches should be fine. On my non-workhorse laptop:
tic;for ii = 1:7000;patch(rand(1,3),rand(1,3),rand(1,3),'r');end;toc
Elapsed time is 0.867551 seconds.
Vedere anche
Categorie
Scopri di più su Graphics Performance in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!