Text in a figure: Increasing Font Size

5 ビュー (過去 30 日間)
Rachel Baker
Rachel Baker 2016 年 8 月 19 日
コメント済み: Rachel Baker 2016 年 8 月 22 日
Hi all,
So, I'm creating a surface plot in which I added the values to the contour lines. I need the text to be larger, but when I try to increase the font size, some of the text does not "fit" inside the figure window. I attached a screen shot of what I'm describing here, as well as my code to generate the figure. I would greatly appreciate any suggestions or help on how to solve this formatting issue.
********************************************
figure
[C,h] = contourf(X,Y,AP_Z,'ShowText','on','LineWidth',1,'Color',[0.5 0.5 0.5]);
set(gca,'YTick',[-10:5:10])
clabel(C,h,'FontSize',15,'Color','k')
c = colormap('Gray')
********************
Thanks!
Rachel

採用された回答

Udit Gupta
Udit Gupta 2016 年 8 月 20 日
You can either include the option 'manual' in your clabel call and use your mouse to place the labels; or you can use the 'LabelSpacing' option to play around a bit (see http://www.mathworks.com/help/matlab/ref/clabel.html#input_argument_namevalue_labelspacing).
  1 件のコメント
Rachel Baker
Rachel Baker 2016 年 8 月 22 日
Udit,
Thanks for your response! I tried the manual setting, and it wasn't sensitive enough to put the text where it needed to be. I like the spacing suggestion, though! That should work well; thanks again!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeText Analytics Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by