×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

2d graph with 3rd dimension represented as color???

2d graph with 3rd dimension represented as color???

2d graph with 3rd dimension represented as color???

(OP)
I want to plot a 2d graph of data points, but as I have millions of points the graph comes out as a blob  of color. What I have done is created a matrix where the third vector is # of occurances. I want to use this third column and plot the graph again in 2d with the third dimension being color corresponding to the number of occurances of different data points.... anyone that can help??

Thanks, T

RE: 2d graph with 3rd dimension represented as color???

If your 2d data is based on a square grid, you can try to convert your color column into a matrix with the location of each element corresponding the position on the square grid. i.e, a=[1,1,0;1,2,1;2,1,2;2,2,3] corresponds to [0,1;2,3]. then CONTOUR plotting.

RE: 2d graph with 3rd dimension represented as color???

Actually, my question is that I never know how to deal with cases outside square grids. Would anyone help me if I want to plot another grid? For example, a triangular grid, with the first 2 columns as (x,y) and the 3rd as some kind of intensity.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources