|
"Luca Cerone" wrote:
> > Can you post a small amount of code (e.g. to plot a figure) which recreates the problem you're seeing?
> > Thanks,
> > Oliver
>
> Hi Oliver, thanks first of all!
> this is a little artificial, but it kind of recreate the issue:
>
> %% These are the Default Plot Properties I have in my startup.m
> set(0,'DefaultFigurePaperPositionMode','auto')
> set(0,'DefaultFigureColor','White')
> set(0,'DefaultTextInterpreter','Tex')
> set(0,'DefaultTextFontName','TimesNewRoman')
> set(0,'DefaultTextFontSize',12)
> set(0,'DefaultLineLineWidth',2)
> set(0,'DefaultAxesLineWidth',1)
> set(0,'DefaultAxesBox','off')
> %%
> x1=linspace(0,.5,1001);
> y1=zeros(1,1001);
> x2=linspace(.5,.55,2000);
> y2=x2-.5;
> x3=linspace(.55,1,1001);
> y3=.05*ones(1,1001);
> %%
> close all
> figure('PaperUnits','inches','PaperSize',[4 3])
> plot(x1,y1);
> hold on
> plot(x2,y2,'--');
> plot(x3,y3);
> axis([0 1 0 1]);
> export_fig test.eps -painters
>
> The problem is that in the Matlab figure I see 3 dashes for the dashed line,
> but in the eps I see only two dashes separated by a small space.
>
> Using zbuffer or opengl creates the exact number of lines as appear in the matlab figure but I don't like the way all the other stuff is rendered.
>
> If you can find a solution you would really give me a huge help!
> Thanks a lot in advance,
> Luca
I don't know how you can get the dashes exactly the same in an eps as in the figure; fix_lines.m only improves the style. I suggest you use dotted rather than dashed lines for short segments, though.
|