DPlot Forum Index DPlot
http://www.dplot.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Density of XY scatter plots

 
Post new topic   Reply to topic    DPlot Forum Index -> Suggestions/Questions
View previous topic :: View next topic  
Author Message
richpauir



Joined: 21 Feb 2007
Posts: 37
Location: College Station, Texas

PostPosted: Sun Jun 15, 2008 1:45 pm    Post subject: Density of XY scatter plots Reply with quote

Is there a way to create a colored density background for a XY scatter plot?

For example, I'd like to be able to convey the amount of clustering of data points that overlay or are proximal to each other in a scatter plot such as this...

Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Sun Jun 15, 2008 2:10 pm    Post subject: Reply with quote

No, sorry. There isn't, but it's something to think about for a future release. What I'm imagining would only have meaning if the X and Y axes were in the same units. If they are then the input would be "how many points are within <radius> units". One technical hurdle to overcome would be determining at what points within the plot that question needs to be answered. Off the top of my head the answer is "all of them" - all pixels/printer dots, that is, but I'd think this would be way, way slow.

I'll give it some thought but this one may take a while to figure out and implement.
_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
richpauir



Joined: 21 Feb 2007
Posts: 37
Location: College Station, Texas

PostPosted: Sun Jun 15, 2008 3:08 pm    Post subject: Reply with quote

One simple solution might be to allow the user to define opacity for the data point symbols. A choice of large symbol size, no symbol border and moderate symbol opacity would create a type of density plot. The more points near each other, the more their symbols would overlap and create a darker shade.
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Sun Jun 15, 2008 3:31 pm    Post subject: Reply with quote

That's an excellent suggestion, thanks. It precludes users with 256-color displays from using that feature, but I'm been trying to cull them out for a while anyway Smile
_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
richpauir



Joined: 21 Feb 2007
Posts: 37
Location: College Station, Texas

PostPosted: Sat Nov 01, 2008 11:57 am    Post subject: Reply with quote

Just wondering if symbol opacity might be a useful feature for others.

I've got a need again for showing density of a scatter plot.
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Sat Nov 01, 2008 12:14 pm    Post subject: Reply with quote

No idea, but I appreciate you posting again. This one had slipped my mind, but it's on my to-do list now where I can't ignore it.

One downside to transparency is this will pretty much eliminate the option to save/copy to a metafile. There's no such thing as a semi-transparent graphic primitive in metafile lingo, so the symbols will have to be drawn pixel-by-pixel. Since metafiles have such a high resolution, the resulting metafile would be huge... and not work particularly well in any case, since the whole point of metafiles is that they're very scalable. But for the display, saved bitmap images, and prints it should work very well.
_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
richpauir



Joined: 21 Feb 2007
Posts: 37
Location: College Station, Texas

PostPosted: Sat Nov 01, 2008 12:25 pm    Post subject: Reply with quote

David, thanks for putting it on the To-Do list. Very Happy
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Sun Nov 02, 2008 3:50 pm    Post subject: Reply with quote

For anybody else following this thread, below is an example of what Rich is talking about. Needs a lot of testing yet, but this will be in the next release.



_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
richpauir



Joined: 21 Feb 2007
Posts: 37
Location: College Station, Texas

PostPosted: Tue Nov 04, 2008 3:01 pm    Post subject: Reply with quote

Some pretty cool plots can be created by tweaking the opacity, colors, and symbol sizes.

Thanks David for taking time to add this feature to DPlot!


Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    DPlot Forum Index -> Suggestions/Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group