Re: UI Question / Threading
- To: mathgroup at smc.vnet.net
- Subject: [mg78510] Re: UI Question / Threading
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Tue, 3 Jul 2007 05:33:51 -0400 (EDT)
- Organization: Uni Leipzig
- References: <f6843b$enk$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
Hi,
Needs["Histograms`"]
gg = Histogram[Eigenvalues[randomMatrix[100]]];
k = 0;
Column[{Dynamic[gg], ProgressIndicator[Dynamic[k], {0, 2048}]}]
Do[
lst = Eigenvalues[randomMatrix[100]];
If[Mod[m, 128] == 0,
k = m;
gg = Histogram[lst]
], {m, 0, 2048}
]
Regards
Jens
jbaker75 at gmail.com wrote:
> Hi -
>
> I would like to do the following simple task, but cannot find out how
> to do it. I would like to create a simple UI in mathematica that
> updates itself on a regular basis. For example, I spawn a process that
> computes the eigenvalues of a "random" matrix. I do this 1000 times.
> If the matrix is large, this may take some time in a single thread.
> Rather, while I do this, I would like to update a graphic showing the
> density of states..., i.e. a histogram of the eigenvalues. I would
> like to update regularly, say every fifty experiments.
>
> Can anyone point me in the right direction?? I am using Mathematica
> 6.0. But also have 5.2 as well.
>
> Thank you!
> Jeff Baker
>
>