How to add space between labels values and its represented values in a plot?
Show older comments
The following code, plots the black dots. I'd like to create some separation between the black dots and the red label number of each dot.
for i=1:nr_BBU
plot(BBU(i,2), BBU(i,1), 'k.', 'MarkerSize',25)
labels = cellstr(num2str([i]'));
%text(BBU(i,2), BBU(i,1), labels, 'Color', 'r', 'HorizontalAlignment', 'left', 'Position', '2')
text(BBU(i,2), BBU(i,1),labels,'HorizontalAlignment','center','VerticalAlignment', 'bottom',...
'Color', 'r', 'FontSize',12)
hold on
end

Accepted Answer
More Answers (0)
Categories
Find more on Annotations 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!