MathGroup Archive 2002

[Date Index] [Thread Index] [Author Index]

Search the Archive

RE: How to put parameter list in or near a graph?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg34242] RE: [mg34221] How to put parameter list in or near a graph?
  • From: "David Park" <djmp at earthlink.net>
  • Date: Sat, 11 May 2002 04:05:02 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Rob,

You can add text to a graph using the Text statement. For normal plotting
you have to put it in an Epilog option. You can compose complicated text by
using SequenceForm. Here is an example.

With[
    {aa = 2,
     bb = Pi/4},
    Plot[aa Sin[t + bb], {t, 0, 2 Pi},
      PlotRange -> {-1.4, 1.02}aa,
      PlotLabel -> HoldForm[a Sin[t + b]],
      AxesLabel -> {t, f},
      Epilog -> {Text[
            SequenceForm["a == ", aa, ", b == ", bb], {0.2, -1.2aa}, {-1,
              0}]}]];

Checkout Text, Epilog and SequenceForm in Help. In the above I tried to
automatically position the parameter text. You could also click off its
position from the graph and paste the position in the Text statement.

David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/

> From: 1.156 [mailto:rob at piovere.com]
To: mathgroup 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



  • Prev by Date: Re: FindRoot starting values
  • Next by Date: Re: Exporting Graphics
  • Previous by thread: How to put parameter list in or near a graph?
  • Next by thread: Re: How to put parameter list in or near a graph?