Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1998

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

Search the Archive

Re: PlotLabel question

  • To: mathgroup at
  • Subject: [mg14905] Re: [mg14892] PlotLabel question
  • From: BobHanlon at
  • Date: Wed, 25 Nov 1998 17:48:26 -0500
  • Sender: owner-wri-mathgroup at

In a message dated 11/23/98 2:47:44 PM, psalzman at

>when i run
>   	ListPlot[Pdist,PlotLabel->{"time="N[time],xpect,wfa[[xpect]]}];
>the output has N[time] before time=.  clearly, i'd like to have
>something that looks like:
>time = 5, 23, 23+5I
>to have as a label on my graph  where time, xpect and wfa are all
>variables  can someone please tell me how to accomplish this?


One way is to use StringForm:

ListPlot[Pdist, PlotLabel -> 
    StringForm["time = ``, ``, ``", N[time], xpect, wfa[[xpect]]]];

Bob Hanlon

  • Prev by Date: Re: Importing Graphics into a table
  • Next by Date: Re: Mechanical Systems Problem
  • Previous by thread: Re: PlotLabel question
  • Next by thread: Re: PlotLabel question