Prev: mex problem :: can't map file, errno=22
Next: Methods block: constructor doesn't find other method
From: Nicholas Kinar on 22 Mar 2010 13:34 Hello-- I would like to create a number of plots in Matlab for inclusion in a Latex document. The Latex processor that I am currently using is Lyx. What is the best way to export 2D plots created by the plot command so that the bounding plot boxes are all the same size? I would like to create a number of subfigures in Latex/Lyx. Is there a possibility of doing this in such a way as to avoid using toolboxes external to Matlab (i.e. those found on the File Exchange)? Thanks, Nicholas
From: Rune Allnor on 22 Mar 2010 13:43 On 22 Mar, 18:34, Nicholas Kinar <n.ki...(a)usask.ca> wrote: > Hello-- > > I would like to create a number of plots in Matlab for inclusion in a > Latex document. The Latex processor that I am currently using is Lyx. > > What is the best way to export 2D plots created by the plot command so > that the bounding plot boxes are all the same size? I would like to > create a number of subfigures in Latex/Lyx. > > Is there a possibility of doing this in such a way as to avoid using > toolboxes external to Matlab (i.e. those found on the File Exchange)? Sure. Plain vanilla matlab: set(gcf,'paperunits','centimeters') set(gcf,'papersize',[12,8]) set(gcf,'paperporition',[0,0,12,8]) should get you a long way. Rune
From: Nicholas Kinar on 22 Mar 2010 14:27 > > set(gcf,'paperunits','centimeters') > set(gcf,'papersize',[12,8]) > set(gcf,'paperporition',[0,0,12,8]) > > should get you a long way. > > Rune Yup - works for me, Rune. On R2009a I had to change 'paperporition' to 'PaperPosition' in the line of code above to have everything compile cleanly, but it's the same idea. Many thanks for pointing this out - Nicholas
|
Pages: 1 Prev: mex problem :: can't map file, errno=22 Next: Methods block: constructor doesn't find other method |