comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Plot scatter points with transparency
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Plot scatter points with transparency [message #94581 is a reply to message #94580] Sat, 15 July 2017 09:24 Go to previous messageGo to previous message
Nikola is currently offline  Nikola
Messages: 53
Registered: November 2009
Member
On Friday, July 14, 2017 at 11:00:31 PM UTC+1, ChengYu Xi wrote:
> Is there a way to do transparent scatter plots? (Usually I use cgScatter2D.pro to do scatter plots)
>
> I need to overlay a large number of scatter points in one plot, which consist of several groups. I want to assign different groups with different colors. The problems is they just tend to block each other due to the large number. Is a way to plot them with transparency or any other good solution?
>
> Thanks,
> Chengyu


A nice solution is to replace the central dense (all-black) cloud of points with a contour. An example is Fig.7 of
http://iopscience.iop.org/article/10.1086/590237/pdf

To make it, plot the contours of the 2D distribution/histogram, extract the data of the plotted contours using keywords path_xy = path_xy and /path_data_coords and then over-plot only those points that are out of the outermost contour line. I have a routine to do it, but I should prepare it a bit for sharing.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Creating executable sav file
Next Topic: Writing to Multiple txt file with different names

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:58:33 PDT 2025

Total time taken to generate the page: 0.00227 seconds