[newbie] how to change plot legend



This is exactly what I needed, thanks again Leo

hugo


On Tue, 30 Nov 2010, Leo Butler wrote:

>
>
> On Tue, 30 Nov 2010, Hugo Coolens wrote:
>
> < I'm trying to replace the automatically generated legend in the following
> < codefragment:
> < deltaurlrel(x):=1-1/(x*(1-x)*%beta+1);
> < relplots:makelist(deltaurlrel(x),%beta,[0.1,0.213,0.444,1,4.545]);
> < plot2d(relplots,[x,0.01,1],[gnuplot_preamble,"set
> < grid",legend,"%beta=0.1","%beta=0.213","%beta=0.444","%beta=1","%beta=4.545"])$
> <
> < unfortunately the plot keeps showing the automatically generated legend
>
> No need to use gnuplot_preamble:
>
> plot2d(relplots,[x,0.01,1],[legend,"%beta=0.1","%beta=0.213","%beta=0.444","%beta=1","%beta=4.545"])$
>
> generates the legend labels that you want.
>
> Leo
>
> -- 
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.
>
>