MathGroup Archive 2005

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

Search the Archive

FW: Monte Carlo status indicator

  • To: mathgroup at smc.vnet.net
  • Subject: [mg54208] FW: [mg54157] Monte Carlo status indicator
  • From: "David Annetts" <davidannetts at aapt.net.au>
  • Date: Sun, 13 Feb 2005 00:21:38 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Hi Peter,
 
> I want to somehow display how far I am in a MC simulation.
> I could just print the iterating variable in my for loop, but then 
> this just outputs waaaaaaay too many lines cluttering the output.  Is 
> there a way to Print overtop a line (i.e.
> replace a line of output)?

This topic was discussed around 9 Feb, 2005 (Controlling Print[]).....

You can use the status bar.  The following is credited to Theodore Gray

Showstatus[status_] := LinkWrite[$ParentLink,
SetNotebookStatusLine[FrontEnd`EvaluationNotebook[], ToString[status]]
	]

Use it as you would Print, for example
Print[#]& /@ Range[10];
Showstatus[#]& /@ Range[100000];

> or maybe a plot that slowly changes to make a pretty display?

Depending on your code, incorporating a plot shouldn't be too difficult.
However, this is likely to fill your notebook with lots of graphics, chewing
up memory, disc space or both.  Plots might be useful if you were making
movies.

Regards,

Dave.



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.8.7 - Release Date: 10/02/2005


  • Prev by Date: Re: Importing binary file is toooooo slow...
  • Next by Date: Re: finding package in ExtraPackages`Enhancements`
  • Previous by thread: Monte Carlo status indicator
  • Next by thread: Re: FW: Monte Carlo status indicator