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

조회 수: 1 (최근 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 CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by