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

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

Community Treasure Hunt

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

Start Hunting!

Translated by