Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2002
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2002

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

Search the Archive

RE: PlotLabel

  • To: mathgroup at smc.vnet.net
  • Subject: [mg36338] RE: [mg36321] PlotLabel
  • From: "David Park" <djmp at earthlink.net>
  • Date: Mon, 2 Sep 2002 04:08:47 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Andre,

You should use SequenceForm in your definition (instead of multiplication
which reorders the items) .

pl[p_] := Plot[Sin[x^p], {x, 0, Pi}, PlotLabel -> SequenceForm["p = " , p],
    DisplayFunction -> Identity]

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

From: André Giroux [mailto:giroux at dms.umontreal.ca]
To: mathgroup at smc.vnet.net

Hi all.
I plot several curve depending on a parameter p and I want the PlotLabel to
show the value of p.
What is wrong with the following ?

pl[p_]:=Plot[Sin[x^p],{x,0,Pi},PlotLabel\[Rule] "p = " p,
    DisplayFunction\[Rule]Identity]

Table[Show[pl[k],DisplayFunction\[Rule]$DisplayFunction],{k,3}]

Cheers




  • Prev by Date: kernel density estimation
  • Next by Date: RE: How to ...?
  • Previous by thread: kernel density estimation
  • Next by thread: Re: PlotLabel