Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Unique labelling of elements in scatter plot

조회 수: 2 (최근 30일)
Hari krishnan
Hari krishnan 2018년 11월 18일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi, I am trying to make a scatter plot with multiple groups 'forVisit' and ''. What if i want to highlight each 'X' and '0' based on the elements in first column of 'read_time_series_data'? Any help to solve this will be appreciated.
x = read_time_series_data.nestType;
y = (read_time_series_data.time)./60;
group = {read_time_series_data.forVisit,read_time_series_data.forRecruitment};
gscatter(x,y,group,'rkgb','o*',15,'on','Nest quality(lux)','time(minutes)');
set(gca,'xtick',[1,16]);
  댓글 수: 5
Hari krishnan
Hari krishnan 2018년 11월 19일
Currently all the values corresponding 'forVisit' is represented by 'X'. But each 'X' corresponds to different value in the first column. So rather than a 'X', i want multiple colur marks to specifically represent each one.
Hari krishnan
Hari krishnan 2018년 11월 19일
Solved.

답변 (0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by