Prev: draw a curve line
Next: real time display
From: Ameya on 26 Apr 2010 14:24 Hello, I use print command to save my figure in high resolution in jpeg format. This causes the length of the dashed line in my figure to reduce and it almost looks like a dotted line. Is there a way to avoid this without compromising on the resolution of the figure? The command I use is: print(h,'-r800','-djpeg','abc'); Thanks, Ameya
From: matt dash on 26 Apr 2010 16:05 "Ameya " <ameya_rsathe(a)yahoo.co.in> wrote in message <hr4lo5$jao$1(a)fred.mathworks.com>... > Hello, > > I use print command to save my figure in high resolution in jpeg format. This causes the length of the dashed line in my figure to reduce and it almost looks like a dotted line. Is there a way to avoid this without compromising on the resolution of the figure? The command I use is: > print(h,'-r800','-djpeg','abc'); > > Thanks, > Ameya Not that I'm aware of. It is probably made worse by the fact that printing as a bitmap format (e.g. jpeg) changes the renderer to opengl, and opengl uses shorter dashes. You can at least have your figure always appear that way by using the command set(gcf,'renderer','opengl') some time after you create the figure, or you can keep the big dashes by exporting in a vector-based format (pdf, eps, etc...), which avoids the resolution issue altogether and doesnt change the renderer.
From: Ameya on 26 Apr 2010 16:21 "matt dash" <n.a(a)mail.com> wrote in message <hr4rm0$en1$1(a)fred.mathworks.com>... > "Ameya " <ameya_rsathe(a)yahoo.co.in> wrote in message <hr4lo5$jao$1(a)fred.mathworks.com>... > > Hello, > > > > I use print command to save my figure in high resolution in jpeg format. This causes the length of the dashed line in my figure to reduce and it almost looks like a dotted line. Is there a way to avoid this without compromising on the resolution of the figure? The command I use is: > > print(h,'-r800','-djpeg','abc'); > > > > Thanks, > > Ameya > > Not that I'm aware of. It is probably made worse by the fact that printing as a bitmap format (e.g. jpeg) changes the renderer to opengl, and opengl uses shorter dashes. You can at least have your figure always appear that way by using the command set(gcf,'renderer','opengl') some time after you create the figure, or you can keep the big dashes by exporting in a vector-based format (pdf, eps, etc...), which avoids the resolution issue altogether and doesnt change the renderer. Thanks Matt for your reply but I need long dashes only. I have another problem when I print the figures as pdf. Please take a look at this thread in which I explain the problem of text in the pdf figure combined with latex: http://www.mathworks.co.uk/matlabcentral/newsreader/view_thread/280530 Regards, Ameya
From: Oliver Woodford on 24 May 2010 09:27 "Ameya" wrote: > Hello, > > I use print command to save my figure in high resolution in jpeg format. This causes the length of the dashed line in my figure to reduce and it almost looks like a dotted line. Is there a way to avoid this without compromising on the resolution of the figure? The command I use is: > print(h,'-r800','-djpeg','abc'); > > Thanks, > Ameya Try: export_fig(h, 'abc.jpg', '-painters', '-r800'); export_fig can be found here: http://www.mathworks.com/matlabcentral/fileexchange/23629-exportfig
|
Pages: 1 Prev: draw a curve line Next: real time display |