From: Alwin van Steensel on 27 May 2010 08:24 Hi everyone, I have a problem concerning saving the figures/plots I create with Matlab that I beleive should not be so hard to solve. However I have been unable to do so despite of searching the help file, internet and trying multiple commands. I can be very specific about what I wánt to acheive. What I want is the matlab code that does exactly the same as if I would manually save a figure; thus if I would use file-->save as... I'm mainly inerested in saving *.eps files in this manner. I've already tried the functions print and saveas but the results differ from saving it manually. For example the axis are rescaled and I'm not sure if the font sizes are equal as the way I created them in the original figure, also the legend box is always to small and the 'edgecolor' cannot be set. Possibly it is just some settings or some additional parameters that would solve my problem but I cannot find a solution anywhere. Does anyone know what the code is what I'm looking for or what the the operation file-->save as... actually dóes. Thanks in advance! Alwin van Steensel
From: mat001 on 27 May 2010 08:35 print('-depsc2', 'a.eps')
From: us on 27 May 2010 08:40 "Alwin van Steensel" <g.a.vansteensel(a)student.tudelft.nl> wrote in message <htlo95$kir$1(a)fred.mathworks.com>... > Hi everyone, > > I have a problem concerning saving the figures/plots I create with Matlab that I beleive should not be so hard to solve. However I have been unable to do so despite of searching the help file, internet and trying multiple commands. > > I can be very specific about what I wánt to acheive. What I want is the matlab code that does exactly the same as if I would manually save a figure; thus if I would use file-->save as... > > I'm mainly inerested in saving *.eps files in this manner. I've already tried the functions print and saveas but the results differ from saving it manually. For example the axis are rescaled and I'm not sure if the font sizes are equal as the way I created them in the original figure, also the legend box is always to small and the 'edgecolor' cannot be set. > > Possibly it is just some settings or some additional parameters that would solve my problem but I cannot find a solution anywhere. > > Does anyone know what the code is what I'm looking for or what the the operation file-->save as... actually dóes. > > Thanks in advance! > > Alwin van Steensel to see what it does edit filemenufcn; % <- don't touch it % in r2010a, go to line #205 % put a break peaks(16); % use the fig's saveas menu % now, you can observe what ...it... does, eg, retrieve a style sheet, etc... us
From: Alwin van Steensel on 27 May 2010 08:44 Thanks for your reply but as indicated in my original post I already tried that option. The output is not equal to what you would get as if you would save it manually. The axes are rescaled for example and with it the axis-ticks, also the edgecolor of the legend is black where in the original figure it is white.
From: Alwin van Steensel on 27 May 2010 09:00 us, Thanks for your reply, I'm looking at the code right now and I think that I should be able to get the right code out of it. I'll post it here if I succeed or not :-)
|
Next
|
Last
Pages: 1 2 Prev: Sort by clicking on column heading in uitable? Next: simulate backward-euler in .m file |