From: Allan on 25 Jun 2010 15:34 When I use saveas() to save a figure in the .eps format for inclusion in a latex file, the figure as it appears in the resulting .pdf file has lost its color. This doesn't happen when I use File -> Save As from the menu and select .eps as the file type. The only two colors I am using are black (RGB = [0 0 0]) and gray (RGB = [.5 .5 .5]). Yet in the .pdf file, all the graph lines are black. > Setting the figure's PaperPosition property should take care of this for you. > The default PaperPosition results in a figure that is 8 x 6 inches
From: Sourav Chatterjee on 25 Jun 2010 16:16 using "print" might be a better option.(Try using the eps color option "-depsc" instead of the black and white option). If that does not help, you can also try doing : set(gcf, 'InvertHardCopy', 'off'); because sometimes the colors are changed when the figure is being printed. "Allan " <allan.yarbrough(a)afit.edu> wrote in message <i030bt$kfb$1(a)fred.mathworks.com>... > When I use saveas() to save a figure in the .eps format for inclusion in a latex file, the figure as it appears in the resulting .pdf file has lost its color. This doesn't happen when I use File -> Save As from the menu and select .eps as the file type. > > The only two colors I am using are black (RGB = [0 0 0]) and gray (RGB = [.5 .5 .5]). Yet in the .pdf file, all the graph lines are black. > > > Setting the figure's PaperPosition property should take care of this for you. > > The default PaperPosition results in a figure that is 8 x 6 inches
From: Allan on 28 Jun 2010 15:17 Thanks, yes, print does preserve the size, but it turns off the grid lines! Again, this only happens from the command line use of print, not from using "Save As" from the figure menu. Still, with a lot of graphs, it would be nice to automate this. Thanks in advance for any help you can offer.
From: us on 28 Jun 2010 15:28 "Allan " <allan.yarbrough(a)afit.edu> wrote in message <i0asfv$ba2$1(a)fred.mathworks.com>... > Thanks, yes, print does preserve the size, but it turns off the grid lines! Again, this only happens from the command line use of print, not from using "Save As" from the figure menu. Still, with a lot of graphs, it would be nice to automate this. > > Thanks in advance for any help you can offer. a hint: - look at this, which shows you how to use a style sheet programmatically - this is done by ...save as... http://www.mathworks.com/matlabcentral/newsreader/view_thread/162796#411767 us
|
Pages: 1 Prev: Calling OpeningFcn from within m file Next: load large matrix and calculate eigenvals |