Line profile on a scatter plot

6 views (last 30 days)
Tom Blanpied
Tom Blanpied on 31 Aug 2011
Hi,
We'd like to derive a plot of point density vs. position along lines drawn on a scatter plot. Similar to an intensity profile as often drawn on image data. We could convert the scatter plots to pixelated density maps, but that degrades the resolution. Plus, the line profile tools I've seen so far for images are good, but not that interactive.
Key points for us would be:
  • user draws a line directly on the plot
  • lines can be at any angle, but do not need to be curved
  • density of points is measured within rectangular bins centered on the line
  • adjustable bin sizes (e.g. the number of bins the line is divided into, and the distance perpendicular to the line over which points from the scatter plot will be included)
  • preferably a live plot would be produced, updated when the user adjusts the position or length of the line, or edits the bin parameters
Has anyone seen or created such code or perhaps a GUI?
Tom

Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!