3D Density Plotting Solutions for [x,y,z] Data

Click For Summary

Discussion Overview

The discussion focuses on methods for creating 3D density plots from [x,y,z] data, particularly addressing challenges in visualizing density when data points overlap. Participants explore various techniques and tools for improving the representation of density in such plots.

Discussion Character

  • Exploratory, Technical explanation, Debate/contested, Homework-related

Main Points Raised

  • One participant mentions using 'scatter3' but finds it inadequate for representing density due to overlapping data points.
  • Another participant suggests changing color or marker size to indicate the number of points at the same location, while noting that this may still not effectively represent density.
  • A different approach proposed involves dividing the volume into segments, counting points in each segment, and assigning colors based on these counts.
  • A participant references a potential solution found on the MathWorks forum, indicating that external resources may provide additional insights.
  • A follow-up question is raised about how to implement color coding for different densities, seeking further clarification on the technique.

Areas of Agreement / Disagreement

Participants express various ideas and suggestions, but no consensus is reached on a single method for effectively plotting 3D density. Multiple competing views and techniques remain under discussion.

Contextual Notes

The discussion does not resolve the limitations of the proposed methods, such as the effectiveness of color changes in representing density or the specific implementation details for dividing volume into segments.

Who May Find This Useful

Individuals interested in data visualization, particularly in the context of 3D plotting and density representation in scientific or engineering applications.

jemma
Messages
35
Reaction score
0
I am trying to display a 3D density plot for my data [x,y,z] and have tried 'scatter3' however as some data points are the same it does not represent the density very well. There is a cool function called scattercloud on the file exchange, but this is only for [x,y] data. I would appreciate any suggestions. Thanks
 
Physics news on Phys.org
You could change the color (or marker size) to represent the number of points at the same location. If you're interested I can provide more help for doing this.

I suppose even if you did this, density might not be represented well, as having points that were close but not exactly the same wouldn't result in a color change. Instead, you could divide the volume up into pieces, get a count of the points in each piece, and then assign a corresponding color to each piece.
 
looks like somebody found a solution on mathworks forum:

http://www.mathworks.se/matlabcentral/newsreader/view_thread/268693
 
Thanks all for your replies. MisterX, how would I go about plotting different colours to represent different densities? Thanks again.
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 14 ·
Replies
14
Views
4K