How can I properly export a figure using the 'patch' command?

3 ビュー (過去 30 日間)
Peter
Peter 2012 年 11 月 8 日
Hi all:
I'd like to export a figure in which I use the 'patch' command to shade recessions. However, the image quality drops as soon as I add the recession bands.
I'm using 'exportfig' and convert eps into pdf via ghostscript.
Does anybody have an idea how to fix this problem?
Best, Peter

採用された回答

José-Luis
José-Luis 2012 年 11 月 8 日
編集済み: José-Luis 2012 年 11 月 8 日
Looks like your image is transformed to a bitmap. When you use patch, the renderer might be set to OpenGL by default. Try and change your renderer to Painters before exporting your figure. That should ensure that you keep vector graphics. Note that transparencies won't work with Painters.
  7 件のコメント
José-Luis
José-Luis 2012 年 11 月 8 日
編集済み: José-Luis 2012 年 11 月 8 日
set(h_over,'XTick',[],'YTick',[]);
or
linkaxes([h h_over],'x');
Off the top of my head I can't remember the command you are asking for or whether it actually exists.
Peter
Peter 2012 年 11 月 9 日
set(gca,'Layer','top') worked out. Thanks for your help José-Luis!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLighting, Transparency, and Shading についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by