Scatter plot with different marker sizes and text labels(overlapping)
조회 수: 6 (최근 30일)
이전 댓글 표시
Hi all , I'm trying to generate a scatter plot about classifiers with 2 cohorts. I want to show different marker sizes if i have overlap in some points. e.g . we have 10 samples of the first group in [1,1] and 5 from the second group at [1,1]. I have solved this giving different size to the markers and putting text top-right for a group and bottom-left to the other one. I'm trying to sum displacement of the biggest marker in a same point, so the text does not overlay the data points but I can't manage how to do it .Can somebody help me? Thank youuu

That's what i'm doing ( i don't know how to calculate the displacement) currH = scatter(x,y ,tm ,sCol{i},sShape{i}); h1 = text(x+dx, y+dy, labels, 'horizontal',hor{i}, 'vertical',ver{i},'FontSize',8,'Color',nColor{i},'FontWeight' , 'bold');
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Scatter Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!