Prev: putting box or chaging pixel value
Next: What is the difference for different versions of Matlab
From: Richard on 27 Mar 2010 10:57 I'm generating movies using mov = addframe(mov,fig); where fig is a handle to a figure. I've also tried to do this with mov = addframe(mov,getframe(fig)); but this causes the same problem. The text is placed on top of a rectangle() which is placed on top of an imagesc(). This is done with text(...'Interpreter','latex'). The rough text appears not just in the output file, but also on the screen. I'm using 2009b on a MacPro. I've used the latex interpreter on simpler figures before, and not had this problem. Will try to recreate it with simple code, but the current code is very complex. I have posted a screen shot here: http://www.earth.ox.ac.uk/~richardk/pub/MatlabLaTeXexample.jpg The text is in the bottom left corner of the plot box, in white. Please let me know if you have any ideas. Thanks. Rich
From: Doug Schwarz on 27 Mar 2010 11:58 In article <hol6bu$7vg$1(a)fred.mathworks.com>, "Richard " <richard.katz(a)earth.ox.ac.uk> wrote: > I'm generating movies using > mov = addframe(mov,fig); > where fig is a handle to a figure. > > I've also tried to do this with > mov = addframe(mov,getframe(fig)); > but this causes the same problem. > > The text is placed on top of a rectangle() which is placed on top of an > imagesc(). This is done with text(...'Interpreter','latex'). > > The rough text appears not just in the output file, but also on the screen. > > I'm using 2009b on a MacPro. > > I've used the latex interpreter on simpler figures before, and not had this > problem. Will try to recreate it with simple code, but the current code is > very complex. I have posted a screen shot here: > > http://www.earth.ox.ac.uk/~richardk/pub/MatlabLaTeXexample.jpg > > The text is in the bottom left corner of the plot box, in white. > > Please let me know if you have any ideas. > > Thanks. > Rich The text will get jagged when the figure's renderer property is set to zbuffer or OpenGL. Try setting it to 'painters': set(gcf,'Renderer','painters') The problem is that this will be slow if the number of points in your image is large, but it should look better. -- Doug Schwarz dmschwarz&ieee,org Make obvious changes to get real email address.
From: Richard on 27 Mar 2010 12:15 > The text will get jagged when the figure's renderer property is set to > zbuffer or OpenGL. Try setting it to 'painters': > > set(gcf,'Renderer','painters') > > The problem is that this will be slow if the number of points in your > image is large, but it should look better. This doesn't work. It was also suggested here: http://www.mathworks.com/matlabcentral/newsreader/view_thread/125018 In fact, 'painters' is the default renderer.
From: Doug Schwarz on 27 Mar 2010 13:24 In article <holaut$cff$1(a)fred.mathworks.com>, "Richard " <richard.katz(a)earth.ox.ac.uk> wrote: > > The text will get jagged when the figure's renderer property is set to > > zbuffer or OpenGL. Try setting it to 'painters': > > > > set(gcf,'Renderer','painters') > > > > The problem is that this will be slow if the number of points in your > > image is large, but it should look better. > > This doesn't work. It was also suggested here: > http://www.mathworks.com/matlabcentral/newsreader/view_thread/125018 > > In fact, 'painters' is the default renderer. Richard, Did you actually change the renderer after producing the figure? I ask because sometimes what you graph will change the renderer without you being aware of it. It doesn't matter what the default is. If you are explicitly changing the renderer to painters and you still get bitmapped latex text then see if you can produce a minimal example that exhibits this behavior and post it. I'd be interested to see what happens here. -- Doug Schwarz dmschwarz&ieee,org Make obvious changes to get real email address.
From: Richard on 27 Mar 2010 14:54 OK, Doug, you are correct that the renderer can change unexpectedly. using the code: set(gcf,'Renderer','painters'); drawnow; mov = addframe(mov,getframe(fig)); to make a movie actually seems to fix the problem. That's great. However, set(gcf,'Renderer','painters'); drawnow; mov = addframe(mov,fig); still has the same problem. I can work with the first formulation, but the second is more convenient. Do you have any further suggestions? Many thanks.
|
Next
|
Last
Pages: 1 2 Prev: putting box or chaging pixel value Next: What is the difference for different versions of Matlab |