[Gretl-users] setting ylabel (was Re: unwanted clipping)

Allin Cottrell cottrell at wfu.edu
Sun Nov 1 11:50:18 EST 2009

On Sat, 31 Oct 2009, Alan G Isaac wrote:

> >  On Sat, 31 Oct 2009, Alan G Isaac wrote:
> > > If I use setinfo to set a name, it is used as my ylabel,
> > > **even if** I explicitly set a ylabel.  This violates the
> > > specificity principle, which should give priority to the
> > > most specific request (the ylabel I set in a specific
> > > graph).
> On 10/31/2009 3:13 PM, Allin Cottrell wrote:
> >  I'd agree that sounds like a bug. Are you setting the ylabel via
> >  the GUI, or via extra commands passed to gretl's "gnuplot"
> >  command?
> The latter.
> I use setinfo right after I create the variable.
> This gives me what I consider to be a "default" ylabel.
> In the case under discussion, I later create a graph where
> I want a different label, so I add
> {set ylabel "My New Label";}
> to my gnuplot command, but it fails to override that "default".

Hmm, if I run this script:

nulldata 300
series s = normal()
setinfo s -n "Q"
g1 <- gnuplot s time -o
g2 <- gnuplot s time -o {set ylabel "My New Label";}

then the y-axis labels I see are "Q" and "My New Label" in g1 and
g2 respectively.


More information about the Gretl-users mailing list