Bug when printing to eps

3 ビュー (過去 30 日間)
Charlie
Charlie 2012 年 3 月 6 日
回答済み: Le Thi Khuyen 2019 年 2 月 24 日
I am printing a figure to eps format using the command
print(fig_h, '-deps','-r700',file_saveas)
However, the colorbar comes out in black and white when I view it (in multiple gs viewers). If I print to any other format, tif for example, the color bar comes out in colour as I would expect.
Does anyone have any idea what might cause a bug like this?
I would like to print to eps because this seems to best stick to the paper sizes and font sizes that I set.
Generally I am finding printing from matlab to journal article specifications difficult. Any useful information sources would be much appreciated.
Thanks, Charlie Hogg
version info: Matlab 7.11.0.584 on 32 bit linux.

回答 (2 件)

Jiro Doke
Jiro Doke 2012 年 3 月 6 日
Does this work?
print(fig_h, '-depsc','-r700',file_saveas)
  2 件のコメント
Charlie
Charlie 2012 年 3 月 6 日
Of course. Thanks.
I'm still perplexed why -deps printed partly in colour and partly in grey, but I'm pleased I have it working.
Jan
Jan 2012 年 3 月 6 日
Objects drawn with RGB-data are printed in color, while indexed colors are converted to black&white - or the other way around.

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


Le Thi Khuyen
Le Thi Khuyen 2019 年 2 月 24 日
You can try with this command: print -depsc fig_h.eps

カテゴリ

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