Why does my axis label turn into a grey box when I print to file?
显示 更早的评论
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...
采纳的回答
更多回答(1 个)
Roland G
2016-2-16
0 个投票
I had this issue recently and found that by reducing the resolution below 300 DPI (I used 200) the problem does not appear.
类别
在 帮助中心 和 File Exchange 中查找有关 Creating, Deleting, and Querying Graphics Objects 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!