Best way in Plotting lots of points
5 views (last 30 days)
Show older comments
Mohammad
on 13 Jun 2015
Edited: Walter Roberson
on 15 Jun 2015
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.
0 Comments
Accepted Answer
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
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.
More Answers (0)
See Also
Categories
Find more on Surface and Mesh Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!