plotyy graph loses x axis text when saved to png format (really!)

1 回表示 (過去 30 日間)
tombola
tombola 2012 年 2 月 8 日
Hi, my code makes a number of graphs using plotyy.
What distinguishes them from your normal graph is there are 2 y axis (no big deal) and I have used the rotateXLabels code from Matlab to rotate the x axis text so it's now vertical.
When I save the graphs in eps format everything is fine - but the graphs look horrible when loaded into word.
When I save in png format - which looks great - even though I can see the x axis text on the screen it's not saved to the file.
Is there anything I can do here? My business users really want png format.
Thanks a lot,
Tom.

採用された回答

tombola
tombola 2012 年 2 月 29 日
If anyone's interested, replacing the saveas with this fixes it.
MATLAB code
f = getframe(gcf);
imwrite(f.cdata, filePath);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTwo y-axis についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by