필터 지우기
필터 지우기

How can I change color when multiple dot are superimposed

조회 수: 2 (최근 30일)
Jonathan Poirier
Jonathan Poirier 2015년 3월 13일
편집: Jonathan Poirier 2015년 3월 16일
I have a graph with multiple point. I want to change color when 2 points are superimposed. By exemple, when 2 points are superimposed, the color of the resulting is pale blue. 3 points at same place, color is blue, 5 points yellow, 10=red etc.
with few points it would be easy to make a loop to check but I have a 64 X 120 matrix (y-axis) and a vector X 64
Thank

답변 (1개)

Image Analyst
Image Analyst 2015년 3월 13일
Just plot the sum of y horizontally vs. x.
  댓글 수: 3
Image Analyst
Image Analyst 2015년 3월 15일
Well maybe I'm thinking of your array wrong then. Why don't you first read this and then give a small example to show what the x and y values are and what colors you think they should be?
Jonathan Poirier
Jonathan Poirier 2015년 3월 16일
편집: Jonathan Poirier 2015년 3월 16일
Ok, I attach an exemple with a . mat file and a figure. The . mat is only one figure. I do a for loop with a hold on to view the plot: Exemple
figure;
hold on;
evt=14;
angle=[0:63]*(360/63);
for n = 1:evt% Number of event
Mat=randn(120,64); %randn just for the exemple
plot (angle,Mat(n),'r.');
end;
I want to visualize the density of dot in same place to give me someting like the exemple.jpeg in attach

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by