how to space overlapping labels in plot
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Dear all,
I´m analyzing MRI data and need to plot the intensity values and behavioural scores of a single voxel from a sample of patients. To label the data points, I used the identifier for each patient.
However, even if I decrease the font size for the labels, they overlap for those data points in close spatial proximity. I have tried to get around this by modifying the plot box and data aspect ratio but haven´t solved the problem yet.
I´d really appreciate if someone in the forum could help me with this since I´m sure it will be a recurrent issue in the future.
Here´s the main code I used for the plot. You can find the plot attached.
x=Syl_FJ12_PERC_MODEL_TP1.beh_cov;
y=cell2mat(pa_int_fixed(:,2));
label=pa_int_fixed(:,1);
figure
plot(x,y, '.r','MarkerSize', 15)
text(x, y, label,'fontSize',8);
title ('VBM Sanity check'), ylabel('GM Intensity Peak Voxel (-36 15 -33) Temp_Pole_Mid_L'), xlabel ('Syl JK12 Perc Model')
Thanks in advance for your time,
Noelia![VBM_JK_Syl12_Perc_Model_sanity_check_labels.jpg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/253249/VBM_JK_Syl12_Perc_Model_sanity_check_labels.jpeg)
![VBM_JK_Syl12_Perc_Model_sanity_check_labels.jpg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/253249/VBM_JK_Syl12_Perc_Model_sanity_check_labels.jpeg)
5 Kommentare
dpb
am 6 Dez. 2019
If you want somebody to perhaps take a shot at it, attach a dataset that reproduces the problem.
Antworten (0)
Siehe auch
Kategorien
Mehr zu Axis Labels finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!