Re: Plots from Previous Session (2)
- To: mathgroup@smc.vnet.net
- Subject: [mg11803] Re: Plots from Previous Session (2)
- From: Allan Hayes <hay@haystack.demon.co.uk>
- Date: Tue, 31 Mar 1998 02:28:24 -0500
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