MathGroup Archive 2009

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

Search the Archive

Re: Capturing the output(s) from a Manipulate?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg103393] Re: [mg103389] Capturing the output(s) from a Manipulate?
  • From: Patrick Scheibe <pscheibe at trm.uni-leipzig.de>
  • Date: Sun, 20 Sep 2009 06:19:59 -0400 (EDT)
  • References: <200909190927.FAA22363@smc.vnet.net>

Hi,

basic example:

SetAttributes[StoreValues, HoldAll];
StoreValues[aa_, bb_, cc_] :=
  Manipulate[
   Column[{Button["Store", {aa, bb, cc} = {a, b, c}], 
     Plot[a Sin[b x] + c, {x, 0, 4 Pi}, 
      PlotRange -> {Automatic, {-1, 1}}]}
    ], {a, 0.1, 2}, {b, 1, 2}, {c, 0, 2}];
StoreValues[c1, c2, c3]


Cheers
Patrick

On Sat, 2009-09-19 at 05:27 -0400, AES wrote:
> Suppose I have a Manipulate[ ] that creates one or more plots, tables, 
> whatever other output.  I exercise it though various values of the 
> controls until I understand how these outputs change, and then decide 
> that I want to capture and "freeze" into the notebook the outputs for 
> three specific sets of these control values,  call them cv1, cv2, cv3. 
> 
> [After which I may even delete the Manipulate command.]
> 
> What's the recommended process for doing this for each of those three 
> selected outputs, as I generate them, so that they'll survive any future 
> Cell >> Delete All Output menu commands?  
> 
> Some kind of Copy/paste?  Some kind of style change for the Output cells 
> as they're generated?
> 
> [Might be nice to have a built-in "Save this output" button in the basic 
> Manipulate interface that would do just that when clicked?]
> 



  • Prev by Date: notebook formatting error
  • Next by Date: Re: Find Selected Function?
  • Previous by thread: Capturing the output(s) from a Manipulate?
  • Next by thread: Re: Capturing the output(s) from a Manipulate?