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 2000

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

Search the Archive

Re: Does anything replace Recall[] ?

  • To: mathgroup at
  • Subject: [mg24405] Re: Does anything replace Recall[] ?
  • From: Jens-Peer Kuska <kuska at>
  • Date: Tue, 18 Jul 2000 00:58:05 -0400 (EDT)
  • Organization: Universitaet Leipzig
  • References: <8kjc83$>
  • Sender: owner-wri-mathgroup at


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?