MathGroup Archive 2000

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

Search the Archive

Re: Does anything replace Recall[] ?


there is also in version 3.0 no Recall[] command.

But $InString[$Line] will help you.

SetOptions[Plot, PlotLabel :> InString[$Line]]

will give you an nice boxed expression like
"\\(Plot[\\(\\(Sin[x]\\), \\({x, 0, 1}\\)\\)]\\)"

You may remove the \( \) by

  PlotLabel :> (StringReplace[InString[$Line], {"\\(" -> "", "\\)" ->

and get the labeled result.

Hope that helps
rob wrote:
> In "Mathematica, A Practical Approach" (p. 146) the author tells how
> to label a plot with the line that generates it.  Running the
> following line before a plot:
> SetOptions[{Plot, ListPlot}, PlotLabel :> ToString[Recall[$Line]]];
> apparently used to work.  Now (ver 4.0), I get "Recall[the line
> number]" instead of the line itself.  The Help shows no evidence of
> Recall[] so I assume the command has been dropped.
> This would be neat to use -- anyone know of a replacement for this
> functionality?
> Thanks, Rob

  • Prev by Date: Re: Plotting Surfaces from data
  • Next by Date: Re: FrameLabel rotation wrong
  • Previous by thread: Re: Does anything replace Recall[] ?
  • Next by thread: Did I something wrong?