From: Kevin on 5 Jul 2010 18:14 "Daniel " <noname(a)noemail.com> wrote in message <hog16c$l37$1(a)fred.mathworks.com>... > jonathan.rubin(a)gmail.com wrote in message <1175939211.290594.138990(a)o5g2000hsb.googlegroups.com>... > > hi experts, > > when exporting images (e.g, imagesc(rand(5)) ) to PDF or EPS formats > > (using 'print' command or 'save as...' from the figure menu) on a mac > > platform, the output gets very blurry. > > when using non-vector-formats (JPG, BMP, etc...) the problem > > disappears. > > following the same procedure on linux-platform or windows-platform - > > no problem at all. > > > > so, how can I export non-blurry EPS/PDF figures on a mac ? > > > > Try using print with the '-opengl' (or '-zbuffer') option or changing the figure renderer to opengl or zbuffer before doing the saveas commnad. It worked for me on Mac 10.5.8, Matlab 2010a. > > So, the commands would be either > print(gcf,'filename','-depsc','-opengl') > > or > set(gcf,'renderer','opengl') > saveas(gcf,'filename','epsc') > > It seems that the painters renderer is not playing nicely with epsc or pdf. It is important to note that painters is the only vector renderer supported by Matlab which "Cannot render figures that use RGB color for patch or surface objects." Also, raster eps files have a whole new set of problems (both opengl and zbuffer can only make raster images). (See http://www.mathworks.com/access/helpdesk/help/techdoc/creating_plots/f3-84337.html#f3-102410)
|
Pages: 1 Prev: synchronous machine modelling Next: Compile to Stand-Alone Application |