From bug-request at octave dot org Sun Nov 21 21:00:50 2004 Subject: Re: Plotting a black line From: "Henry F. Mollet" To: Miroslaw Kwasniak , Octave_post CC: Date: Sun, 21 Nov 2004 14:06:56 -0600 Thanks. Hurray it worked after making changes *and* opening a new Octave session. Before opening a new session, "k" produced brown line with old and new __pltopt1__.m. Henry octave:1> x=[0:0.1:1]; octave:2> y=2*x; octave:3> plot (x,y,"- at k0") % "0" for no points style/symbol for data points on 11/21/04 2:02 AM, Miroslaw Kwasniak at mirek at zind dot ikem dot pwr dot wroc dot pl wrote: > On Sat, Nov 20, 2004 at 11:19:50AM -0800, Henry F. Mollet wrote: >> Sorry that I did not completely specify what I've got and it's what was >> installed about 1 yr ago using fink and thus a "dated" configuration: >> GNU Octave, version 2.1.46 (powerpc-apple-darwin6.6). >> G N U P L O T Version 3.8i patchlevel 0 >> AquaTerm version 0.1 (v0.3.0) >> >> I've checked again today and it looks like a gray line to me in AquaTerm. >> However I cannot see the data points and did not expect to see them. Then I >> saved as pdf (see attached) and in addition to the gray line (somewhat >> jagged) I could also see 9 data points (at 0.1 to 0.9; very faint). > > On my side that line in your pdf looks gray without points - checked with > max allowed zoom in acroread4, acroread5, xpdf3 ;) > > I assume that small patch for __pltopt1__.m should solve your problem - it > adds support for black color lines (symbol "k") > > Mirek > > ===================================================== > $ diff -u __pltopt1__.m0 __pltopt1__.m > --- __pltopt1__.m0 2004-11-21 10:12:41.000000000 +0100 > +++ __pltopt1__.m 2004-11-21 10:39:53.000000000 +0100 > at @ -139,7 +139,10 @@ > elseif (strcmp (char, "c")) > set_color = 1; > color = "5"; > - elseif (strcmp (char, "w") || strcmp (char, "k")) > + elseif (strcmp (char, "k")) > + set_color = 1; > + color = "-1"; > + elseif (strcmp (char, "w")) > set_color = 1; > color = "6"; > elseif (strcmp (char, "*")) > ===================================================== > > > > ------------------------------------------------------------- > Octave is freely available under the terms of the GNU GPL. > > Octave's home on the web: http://www.octave.org > How to fund new projects: http://www.octave.org/funding.html > Subscription information: http://www.octave.org/archive.html > ------------------------------------------------------------- > ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------