MATLAB Answers


Unique labelling of elements in scatter plot

Hari krishnan さんによって質問されました 2018 年 11 月 18 日
最新アクティビティ Hari krishnan さんによって コメントされました 2018 年 11 月 19 日
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)');

  5 件のコメント

Image Analyst
2018 年 11 月 18 日
Again, What does "highlight" mean to you?
You cannot have the groups be unique unless every marker is in its own group. If that's what you want, use scatter() instead of gscatter() and you can probably make each marker unique (at least its color unique).
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 2018 年 11 月 19 日

サインイン to comment.


0 件の回答

Translated by