MathGroup Archive 2004

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

Search the Archive

Re: labeling curves on a plot


On 4/29/04 at 7:39 PM, abcollier at phreaker.net (Andrew Collier)
wrote:

>could someone please give me some pointers on how to label individual
>curves on a plot. i am trying to achieve something like the plot on
>http://mathworld.wolfram.com/BesselFunctionoftheFirstKind.html where
>each of the curves is labelled "J0(x)", "J1(x)" etc.

>was mathematica use to the produce the plot on the above page? i would
>hope so... and if so, then how were the labels formatted so nicely?

I am sure the plot on that page was created with Mathematica. One way to add labels to curves would be to use Epilog. For example, try pasting the following into a Mathematica notebook:

\!\(\(Plot[{
    x, x^2}, {
      x, 0, 1}, Epilog -> {Text["\<y=x\>", { .4,  .55}, {\(-1\), 0}], \
Text[\*"\"\<y=\!\(x\^2\)\>\"", { .6,  .2}, {1, 0}]}];\)\)

Another way would be to use the DrawGraphics package David Park created
--
To reply via email subtract one hundred and four


  • Prev by Date: Re: 34.123*89 = 3036.95 (3036.947)
  • Next by Date: Re: export plot data
  • Previous by thread: labeling curves on a plot
  • Next by thread: Re: labeling curves on a plot