Tags: disappearand, eps, exporting, figure, format, matlab, paper, prepared, programming, save, ticks

Exporting a figure in eps format

On Programmer » Matlab

3,959 words with 4 Comments; publish: Wed, 07 May 2008 11:41:00 GMT; (200312.50, « »)

Hi,

I have a figure prepared for a paper, so I should save it as *.eps.

However, when I save it as .ps or .eps, ticks in the figure disappear

and some dots in dotted lines appear as 'dot' and some of them as

'tiny lines'. I tried different printer driver options in saveas

command like 'epsc2' or some HP printer driver options, but none of

them work. What should I do in order to gain my dots or ticks back in

.ps/.eps files?

Any help will be greatly appreciated...

All Comments

Leave a comment...

  • 4 Comments
    • cereyan wrote:

      > Hi,

      > I have a figure prepared for a paper, so I should save it as *.eps.

      > However, when I save it as .ps or .eps, ticks in the figure disappear

      > and some dots in dotted lines appear as 'dot' and some of them as

      > 'tiny lines'. I tried different printer driver options in saveas

      > command like 'epsc2' or some HP printer driver options, but none of

      > them work. What should I do in order to gain my dots or ticks back in

      > .ps/.eps files?

      > Any help will be greatly appreciated...

      what matlab version do you use and what operating system?

      michael

      #1; Wed, 07 May 2008 11:42:00 GMT
    • Michael Wild wrote:

      >

      > cereyan wrote:

      > what matlab version do you use and what operating system?

      > michael

      >

      I use Windows XP SP2 and Matlab 7.1 SP3.

      #2; Wed, 07 May 2008 11:43:00 GMT
    • You might try 'freezing' the axes ticks and limits before printing (printing

      normally will recalculate them based on the target output page size

      set(gca, {'XTickMode', 'YTickMode', 'ZTickMode', 'XLimMode', 'YLimMode',

      'ZLimMode'}, ...

      {'manual', 'manual', 'manual', 'manual', 'manual', 'manual'});

      Also, you may want to set the figure's PaperPositionMode to 'auto' so the

      output will appear the same size as on screen (which may avoid issues caused

      by rescaling the figure to the output size)

      set(gcf, 'PaperPositionMode', 'auto');

      Richard Quist

      Software Developer The MathWorks, Inc.

      "cereyan" <nadir.kaplan.matlab.questionfor.info.pclabs.gen.tr> wrote in message

      news:ef2cd36.1.matlab.questionfor.info.webx.raydaftYaTP...

      > Michael Wild wrote:

      >

      > I use Windows XP SP2 and Matlab 7.1 SP3.

      #3; Wed, 07 May 2008 11:44:00 GMT
    • Hi again,

      I tried what you've suggested, even I saved my ticks (thank you very

      much) but after all when I use dotted line style and export into

      .eps, my dots turn to tiny lines which is fatal for me.

      What should I do for dotted line style, because I have to use them

      and they should come out as dots as they look in figure window.

      Any help will be appreciated.

      Richard Quist wrote:

      >

      > You might try 'freezing' the axes ticks and limits before printing

      > (printing

      > normally will recalculate them based on the target output page size

      > set(gca, {'XTickMode', 'YTickMode', 'ZTickMode', 'XLimMode',

      > 'YLimMode',

      > 'ZLimMode'}, ...

      > {'manual', 'manual', 'manual', 'manual', 'manual',

      > 'manual'});

      > Also, you may want to set the figure's PaperPositionMode to 'auto'

      > so the

      > output will appear the same size as on screen (which may avoid

      > issues caused

      > by rescaling the figure to the output size)

      > set(gcf, 'PaperPositionMode', 'auto');

      > --

      > Richard Quist

      > Software Developer The MathWorks, Inc.

      #4; Wed, 07 May 2008 11:45:00 GMT