MathGroup Archive 1998

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

Search the Archive

Re: PlotLabel question


In a message dated 11/23/98 2:47:44 PM, psalzman at landau.ucdavis.edu
writes:

>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?
>

Pete,

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