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: [mg24427] Re: [mg24365] Does anything replace Recall[] ?
  • From: BobHanlon at
  • Date: Tue, 18 Jul 2000 00:58:25 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

In a message dated 7/12/2000 11:36:27 PM, piovere at writes:

>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

Use InString

SetOptions[{Plot, ListPlot}, PlotLabel :> 
      StringReplace[InString[$Line], {";" :> "", "\\(" :> "", "\\)" :> ""}]

Plot[3x, {x, 0, 5}];

Bob Hanlon

  • Prev by Date: Re: combining graphics
  • Next by Date: Re: fade to mauve
  • Previous by thread: Does anything replace Recall[] ?
  • Next by thread: Re: Does anything replace Recall[] ?