MathGroup Archive 1998

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

Search the Archive

Re: Plots from Previous Session (2)



I missed out what plt was in my previous posting - here is the full
version.

Two suggestions [for saving graphics code] In each case it is the
Mathematic code that is saved (the output), not the PostScript code for
the display.

With

plt = Plot[Sin[x],{x,0,2Pi}]

1. Save in a separate file (convenient but you have to keep, and keep
track of, the file).

plt>>savedplt

This can now be recovered

<<savedplt

-Graphics-

% == plt

True

You may want to have a different location for the file.

2. Store in notebook (messy but it is part of the notebook)

A simple way to do this is to enter 

InputForm[plt]

and then change the cell to an input cell ( you may want to remove the
cell label - typing space in front of the expression will do this -- 
Allan Hayes
Mathematica Training and Consulting
Leicester, UK
hay@haystack.demon.co.uk
http://www.haystack.demon.co.uk
voice: +44 (0)116 271 4198
fax: +44 (0)116 271 8642




  • Prev by Date: Re: Speed of writing in Mathematica 3.01
  • Next by Date: Re: Re: Plots from Previous Session
  • Prev by thread: "self" message/WhoAmI code that can be executed by a Notebook
  • Next by thread: Hue ? and MGF-format