On Mon, Jun 9, 2008 at 10:16 AM, Eric Firing <[EMAIL PROTECTED]> wrote:
> Please try now, with r5435 or later. There is still the underlying > puzzle to be solved before all this can be cleaned up, but I think the > basic functionality is back. Eric: in Shell,py, around line 1167, you'll find this code: backends = {'gthread' : 'GTKAgg', 'wthread' : 'WXAgg', 'qthread' : 'QtAgg', 'q4thread' :'Qt4Agg', 'tkthread' :'TkAgg', } That is used to SET the rcParams['backend'] value. I don't know if that can cause issues. But more importantly, I think the problem you see comes from this code (just a bit later in the same file): else: backend = matplotlib.rcParams['backend'] if backend.startswith('GTK'): th_mode = 'gthread' elif backend.startswith('WX'): th_mode = 'wthread' elif backend.startswith('Qt4'): th_mode = 'q4thread' elif backend.startswith('Qt'): th_mode = 'qthread' else: # Any other backend, use plain Tk th_mode = 'tkthread' return mpl_shell[th_mode] IPython does an explicit check on the names of the backends with that exact capitalization. I could add a .lower() call to the line that starts: backend = matplotlib.rcParams['backend'].lower() and change the .startswith() calls to do all lowercase checks. Could you see if that helps? That would make the fix backwards compatible. Cheers, f ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel