Scatter plot with different marker sizes and text labels(overlapping)

2 次查看(过去 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 个)

类别

Help CenterFile Exchange 中查找有关 Scatter Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by