Re: How to put parameter list in or near a graph?
- To: mathgroup at smc.vnet.net
- Subject: [mg34250] Re: How to put parameter list in or near a graph?
- From: "Allan Hayes" <hay at haystack.demon.co.uk>
- Date: Sun, 12 May 2002 03:25:46 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
I should have included the following in my earlier posting:
There is a problem with ordering; you will find that in the following "a = "
a is treated as a product and gives 2 a = .
a=2;b=4;
Plot[x,{x,0,1},
PlotLabel->"a = " a];
This can be dealt with in several ways, for example
Plot[x,{x,0,1},
PlotLabel->SequenceForm["a = ",a]];
Plot[x,{x,0,1},
PlotLabel->StringForm["a = ``",a]];
Plot[x,{x,0,1},
PlotLabel->"a = "<>ToString[a]];
This is only a starter, please consult the book for more to do with
determining the appearence of the text.
--
Allan
---------------------
Allan Hayes
Mathematica Training and Consulting
Leicester UK
www.haystack.demon.co.uk
hay at haystack.demon.co.uk
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565
"Allan Hayes" <hay at haystack.demon.co.uk> wrote in message news:...
> Rob,
> The options, PlotLabel, FrameLabel (with Frame -> True), Epilog ( with
> Text[...]) might help.
> You can include the parameters literally as a,... in the expression being
> plotted and as "a"= a in the text and then define a= 1.2,... before
> plotting.
> Then there is the package Graphics`Legend`
>
> --
> Allan
>
> ---------------------
> Allan Hayes
> Mathematica Training and Consulting
> Leicester UK
> www.haystack.demon.co.uk
> hay at haystack.demon.co.uk
> Voice: +44 (0)116 271 4198
> Fax: +44 (0)870 164 0565
>
>
> "1.156" <rob at piovere.com> wrote in message
news:abfrm7$gqv$1 at smc.vnet.net...
> > Surely this has been discussed here but I haven't been able to find it.
> >
> > Very often I make a plot which shows the essence of my results but then,
> to present it, I print the plot and then I have to hand write all the
> parameters onto the plot area. Surely there is a way to overlay onto the
> plot things like
> > "a = 1.2, b= 2.0,....." and save me all that trouble (and the chance of
> making errors).
> >
> > I'd even settle for printing a line under the plot which displays the
same
> info -- I can't even figure out how to do that. I can make it output each
> parameter but it takes a full line for each one and this takes up a lot of
> paper.
> >
> > Any help from this generous group will be appreciated, as usual.
> >
> > Rob
>
>