[SciPy-user] going through a lot of plots

Robert Kern robert.kern@gmail....
Thu May 14 15:17:09 CDT 2009


On Thu, May 14, 2009 at 10:47, David Warde-Farley <dwf@cs.toronto.edu> wrote:
> On 13-May-09, at 7:18 PM, Robert Kern wrote:
>
>> I usually write up a quick Traits UI that embeds the Chaco Plot with a
>> slider or whatever to select the dataset. This lets me move forwards
>> and backwards and abort in the middle much more naturally.
>
> Thanks for the idea. I followed Gael's tutorial example pretty closely
> and did the same with my existing matplotlib code (not that Chaco
> isn't great and all, just taking the path of least resistance at this
> point).
>
> This has a slight problem when running ipython with -wthread, in that
> if I want to view several disparate groups (i.e. I have many images,
> and I'm processing them one by one, so I've set it up so I can look at
> all the objects in an image) - there is no way (as far as I can tell)
> to get my function to wait on configure_traits() before moving on to
> the next image (I suppose I could embed another slider or something to
> select the image...).

The latter would probably be preferable for much the same reasons as
using a slider for selecting each object. But it cold be more code.

> Is there any way to tell a GUI to take the
> interpreter thread hostage?

obj.edit_traits(kind='livemodal')

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco


More information about the SciPy-user mailing list