octave-maintainers
[Top][All Lists]
Advanced

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

Re: more graphics changes.


From: John W. Eaton
Subject: Re: more graphics changes.
Date: Wed, 21 Mar 2007 11:56:25 -0400

On 21-Mar-2007, David Bateman wrote:

| John W. Eaton wrote:
| > On 21-Mar-2007, David Bateman wrote:
| >
| > | Another issue I just noticed that
| > | 
| > | plot(cos([1:10]),"-*g;;")
| > | 
| > | Doesn't respect the line colors and plots them all as Red.... Is this a
| > | bug or a missing feature?
| >
| > Color properties are RGB triples in the graphics object.  The line
| > spec "-*g" is translated to a line type and RGB color.  Gnuplot 4.2
| > can handle the color directly, but earlier versions of gnuplot only
| > have a very limited number of line types with set colors so I did not
| > see that it was worth trying to map a color of [0,1,0] to a (possibly
| > terminal dependent) line type number to specify the color when that
| > can't possibly work for more than about six or seven colors.  I think
| > the solution is to use gnuplot 4.2.
| >
| > jwe
| >
| >   
| The previous version of my patch wasn't quite correct. This version is
| better

OK.  I also changed

  if (! have_newer_gnuplot && typ != NaN)
    withclause{data_idx} = sprintf ("with %s linetype %d",
                                    style, typ);
  else
    withclause{data_idx} = sprintf ("with %s linestyle %d",
                                    style, data_idx);
  endif

to be

  if (have_newer_gnuplot || isnan (typ))
    withclause{data_idx} = sprintf ("with %s linestyle %d",
                                    style, data_idx);
  else
    withclause{data_idx} = sprintf ("with %s linetype %d",
                                    style, typ);
  endif

Thanks,

jwe


reply via email to

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