Why does my axis label turn into a grey box when I print to file?

3 ビュー (過去 30 日間)
Scott Webster
Scott Webster 2014 年 12 月 21 日
回答済み: Roland G 2016 年 2 月 16 日

I am having a problem where for certain axis labels, when exporting the figure to a PNG file, the text turns into a grey box. Here is an example:

figure;
xlabel('This text is too long longer longer');
print('-dpng', '-r600', 'test.png');

If the text is shorter, or I choose a lower resolution then the problem does not occur... any thoughts as to what might be happening here? This is with the software OpenGL implementation in R2014b...

  2 件のコメント
mashtine
mashtine 2015 年 2 月 25 日
Hey,
Did you find an answer for this?
Scott Webster
Scott Webster 2015 年 2 月 25 日
No. I guess I should open a support case.

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

採用された回答

Richard Quist
Richard Quist 2015 年 3 月 26 日
That sounds like this issue which was fixed in R2015a: Very long or very large text is not displayed or printed
  1 件のコメント
Scott Webster
Scott Webster 2015 年 3 月 26 日
Sounds exactly like my problem. Good to know that it has been fixed in the next version. Thanks for the answer.

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

その他の回答 (1 件)

Roland G
Roland G 2016 年 2 月 16 日
I had this issue recently and found that by reducing the resolution below 300 DPI (I used 200) the problem does not appear.

カテゴリ

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

製品

Community Treasure Hunt

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

Start Hunting!

Translated by