Re: [Image-SIG] that's enough

2010-07-19 Thread Chris Mitchell
Here is how I do it with wxPython. You might need to change a few things to get it to work for your instance since I copied/pasted part of my image viewer program to try and make a minimal example. Basically you need to run the simulation then call self.imageholder.Refresh(), which will execute th

Re: [Image-SIG] that's enough

2010-07-19 Thread Jack Uretsky
Hi Chris- Thabks. That's really not the issue here. My problem is that I very successfully flash a picture, but then I don't know how to get rid of it to flash another one. Regards, Jack (MIT '45, '56) "Trust me. I ha

Re: [Image-SIG] that's enough

2010-07-19 Thread Chris Mitchell
Hey Jack, Are you trying to model fluorophores? If you want to model a Poisson process you don't need any special packages, just take the negative log of a uniformly distributed random variable from 0-1. Mathematically, this would be saying: y = r*e(-rt), where y is a uniform random variable, the

Re: [Image-SIG] that's enough

2010-07-19 Thread Jack Uretsky
Hi Chris- In answer to your question, this is a simulation. The "events" are program generated; I'm trying to approximate a Poisson process, so the times between event pairs are exponentially distributed. Regards, Jack "Trust me. I have

Re: [Image-SIG] that's enough

2010-07-19 Thread Christopher Barker
Jack Uretsky wrote: I have a sequence of events ocurring in real time. To each event I display a corresponing .jpg picture. The number of events may be in the hundreds. There are eight pictures. where are these "events" coming from? In any case, one route is to have a main wxPython app

Re: [Image-SIG] that's enough

2010-07-19 Thread Jack Uretsky
Good question. I have a sequence of events ocurring in real time. To each event I display a corresponing .jpg picture. The number of events may be in the hundreds. There are eight pictures. Regards, Jack "Trust me. I

Re: [Image-SIG] that's enough

2010-07-19 Thread Christopher Barker
Jack Uretsky wrote: Thanks. I'm looking into this. But my problem was how to end a display; can you do this? If you are doing the wxPython option -- I"d ask on that list. But while we're here: What do you want to happen when you end the display? i.e. what program flow are you looking for?

Re: [Image-SIG] that's enough

2010-07-19 Thread Jack Uretsky
Thanks. I'm looking into this. But my problem was how to end a display; can you do this? Regards, Jack "Trust me. I have a lot of experience at this." General Custer's unremembered message to his men, jus

Re: [Image-SIG] that's enough

2010-07-19 Thread Jack Uretsky
Thanks for the tip. It ain't cheap, so I'm checking to see if we have any site licenses. Regards, Jack "Trust me. I have a lot of experience at this." General Custer's unremembered message to his men, just before leading t

Re: [Image-SIG] that's enough

2010-07-19 Thread Christopher Barker
Brian Blais wrote: I'n trying to find a binary veersion of matplotlib that I can install on my OS X Snow Leopard. really a question for the matplotlib list, but: There was recently a binary posted to the standard matplotlib page. It is for the python.org python -- that supports the wides