[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

plot style changes when printed to files

From: Jonathan Stickel
Subject: plot style changes when printed to files
Date: Thu, 01 Nov 2007 07:39:49 -0600
User-agent: Thunderbird (Macintosh/20070728)

Date: Thu, 1 Nov 2007 11:02:36 +0800
From: Evan <address@hidden>
Subject: plot style changes when printed to files
To: address@hidden
Content-Type: text/plain; charset=ISO-8859-1

version 2.9.15

for example,

octave:1> x=0:.1:2*pi;
octave:2> y1=sin(x);
octave:3> y2=cos(x);
octave:4> plot(x,y1,"-",x,y2,"-");
octave:5> print -deps a.eps

the plot displayed on screen is line style, however, in a.eps, one of
the lines changes into dashed line.

how can I keep the line plot style not changed when saved to files?

thanks in advance

As mentioned, these issues happen because of gnuplot. Until something better is implemented, the best that can be done is to learn the inconsistencies and work around them. In this case, if you want dashed lines in your final eps file, use the print command as noted above. If you want solid lines, use the -depsc (color eps) terminal instead. To force black lines, simply do:

> plot(x,y1,'-k',x,y2,'-k')
> print -depsc out.eps


P.S. Someone else posted about a similar problem with errorbar plots. I recently discovered this one as well and could not find a workaround :-(

reply via email to

[Prev in Thread] Current Thread [Next in Thread]