Fontsize in clabel with rotated labels 2014b

3 ビュー (過去 30 日間)
Stephan
Stephan 2014 年 10 月 23 日
回答済み: Rob Comer 2015 年 6 月 5 日
Hello,
I switched to 2014b improving the look of several diagrams, but also gave me a hard time to adjust a few properties. Up to now I am stuck with the following problem: clabel(C,h) no longer returns a handle, so that I am not able to change the FontSize. The other option is to use clabel(C) but in this case the label is no longer within the lines (it's a bit shifted) and there is a cross which does not improve the readability of the plot.
The question is if there is a way to use clabel(C,h) and also change the FontSize of the labels. I also checked the properties explorer giving me no clue.
Thanks in advance, Stephan
  4 件のコメント
Cynthia Gerlein-Safdi
Cynthia Gerlein-Safdi 2015 年 4 月 27 日
Did you guys found a way around this? I am currently installing a trial version of 2015a in the hope that this problem has been fixed.
Star Strider
Star Strider 2015 年 4 月 27 日
If you don’t tell TMW, they won’t know it’s a problem.

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

回答 (1 件)

Rob Comer
Rob Comer 2015 年 6 月 5 日
If you download and install one of the workarounds available here for R2014b or R2015a: http://www.mathworks.com/support/bugreports/1114747, you'll be able to use commands like the following to control the FontSize of your labels:
clabel(C,h,'FontSize',32)
If you try a value and it turns out be either too large or too small, you can adjust it with an additional call to the clabel function, like this:
clabel(C,h,'FontSize',20)
or simply return to the default value:
clabel(C,h,'FontSize','default')
The workaround enables a total of 12 properties that affect the appearance of contour labels: Color, FontName, FontSize, FontWeight, and 8 others.

カテゴリ

Help Center および File ExchangeContour Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by