I shouldn't have jumped to conclusions. Agg seems OK. GTKAgg works from SciTE and IDLE just using show().
If I substitute this:
manager = get_current_fig_manager()
manager.window.show()
raw_input('paused')
then a window is opened but nothing is painted onto the canvas area from either IDLE or SciTE.
It looks like GTKAgg might be the backend of choice for these environments.
Gary
----- Original Message -----
From: John Hunter <jdh...@ac...>
Date: Thu, 22 Apr 2004 08:09:52 -0500
To: "Gary Ruben" <ga...@em...>
Subject: Re: [Matplotlib-users] Agg backend problem with 0.53
> >>>>> "Gary" == Gary Ruben <ga...@em...> writes:
>
> Gary> It's evidently something to do with threads and is probably
> Gary> an inherent problem with Agg. I'm just bringing this to the
> Gary> attention of others here who may be having similar
> Gary> problems. Perhaps John knows what's going on and whether
> Gary> anything can be done about it. The convenience of working in
> Gary> SciTE For the moment,
>
> I would be very surprised if it's agg - I think it's a GUI conflict on
> the Tk side. Todd is this related to the idle -n thingie? If so,
> perhaps a FAQ and status report are warranted.
>
> Gary, since you say GTK is working, you may also want to check GTKAgg
> which will help up narrow it down to Tk, and would rule out agg
> problems. But since SciTE is GTK based, you probably need make sure
> that matplotlib is not firing up it's own gtk mainloop, by not calling
> 'show'. You can show your GTK figures manually if necessary by doing
>
> manager = get_current_fig_manager()
> manager.window.show()
>
> This is a GTK specific call applicable only if the GTK mainloop is
> already running (as I suspect it is in SciTE, which I haven't used),
> It is probably a good idea to standardize the API here across GUIs to
> handle exactly this case.
>
> The larger question is why would there be a GTK/Tk conflict? In any
> case, let us know if you learn anything else.
>
> JDH
>
--
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm
|