Best way in Plotting lots of points

5 views (last 30 days)
I have meshed a plate with 40000 point. Currently it is as following.
abc(ii)=plot(kkk(ii,1),kkk((ii+n_node/3),1),'.',...
'LineWidth',6,...
'MarkerEdgeColor',[1 1 1]*IDC(ii,1),...
'MarkerFaceColor',[1 1 1]*IDC(ii,1),...
'MarkerSize',6);
any idea that I can present results more nice?
I am thinking something like as gradient colors.

Accepted Answer

Walter Roberson
Walter Roberson on 14 Jun 2015
I think you should be considering using scatter() instead of plot(). plotting one point at a time is time-consuming when you have a lot of points.
  5 Comments
Mohammad
Mohammad on 15 Jun 2015
I am not sure about your question. but, there is a girding approach. The issue is by using scatter that gives single color to all points while in the original written code I have assigned a color to each point. I am going to use your suggestion and see what will be results.
Walter Roberson
Walter Roberson on 15 Jun 2015
Edited: Walter Roberson on 15 Jun 2015
scatter() does not give a single color to all points. Notice the pointcolor variable I create is an array of values, one row per point. For example try this experiment:
scatter(rand(1,10),rand(1,10),35,rand(10,1))
and observe that the different points have different colors.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!