How can I change the size of the text in annotation, and place a border around it?

84 次查看(过去 30 天)
Hi! I would like to have a textbox on the outside of a polarplot, but with a border around it. It had a border around it when it was inside of the polarplot, but once I moved the textbox outside, the border disappeared. I would also like to make the textbox font size larger than the default. Here is my code so far:
figure
polarplot(FR{62})
annotation('textbox',[0.12, 0.80, 0, 0],'String',['Mutual Info = ',num2str(mutualInfoTotal(62))])
title('Mouse 28 Cell 62, Thalamus')

采纳的回答

Sindar
Sindar 2020-4-22
You are setting the width and height of the box to 0.
I believe this should do it, but check here for other properties you may need/want to tweak
annotation('textbox',[0.12, 0.80, 0.1, 0.1],'String',['Mutual Info = ',num2str(mutualInfoTotal(62))],...
'FontSize',24,'EdgeColor','k')

更多回答(0 个)

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by