Scatter plot with different marker sizes and text labels(overlapping)
3 views (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Categories
Find more on Scatter 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!