From: John H. <jdh...@ac...> - 2004-08-19 17:50:07
|
>>>>> "Fernando" == Fernando Perez <Fer...@co...> writes: >> push = self.shell.push # Code to execute in user's namespace >> lines = ["import matplotlib", ---> "matplotlib.use('GTKAgg')", >> "matplotlib.interactive(1)", "import matplotlib.matlab as >> matlab", "from matplotlib.matlab import *"] You might make the >> additional caveat in the docs about honoring rc settings that >> the default backend is overridden. Fernando> Well, actually I think we should honor the user's rc Fernando> choice, don't you? In fact, the ipython version does Fernando> this, so the equivalent here would be just to comment Fernando> out the line you highlighted. Yes, and along those lines for the GTK shell, we should use rcParams['backend'] to detect GTK versus GTKAgg and use whichever is in the rc file in the call to matplotlib.use. Fernando> Cool. I'll integrate Antoon's and your fixes into the Fernando> 'real' (read ipython-based) code, and we'll play with Fernando> that a bit. Do you foresee any problems with the WX Fernando> backend? Right now I have global pygtk calls, but I Fernando> suppose those should be done only by the matplotlib Fernando> shell class IF Gtk is the chosen backend. Relocating the pygtk calls into the backend dependent section sounds good. As for problems with wx, I can't really say until we try. Thanks! JDH |