[matplotlib-devel] AttributeError: 'FigureCanvasWxAgg' object has no attribute 'SetInitialSize'
Hi all, I have some trouble with matplotlib's svn version. Any pointer would be appreciated. Thanks in advance Nils /usr/bin/python -i nlp_3.py --verbose-helpful $HOME=/home/nwagner matplotlib data path /usr/lib/python2.4/site-packages/matplotlib/mpl-data loaded rc file /home/nwagner/matplotlibrc matplotlib version 0.98.0 verbose.level helpful interactive is False units is False platform is linux2 CONFIGDIR=/home/nwagner/.matplotlib Using fontManager instance from /home/nwagner/.matplotlib/fontManager.cache numerix numpy 1.2.0.dev5257 backend WXAgg version 2.5.3.1 starting solver ipopt (license: CPL) with problem nlp3 [PyIPOPT] Ipopt will use Hessian approximation. [PyIPOPT] nele_hess is 0 iterobjFunVallog10(maxResidual) 0 -1.640e+02 0.81 Traceback (most recent call last): File "nlp_3.py", line 65, in ? r = p.solve(solver) File "/usr/lib/python2.4/site-packages/scikits/openopt/Kernel/BaseProblem.py", line 236, in solve return runProbSolver(self, solvers, *args, **kwargs) File "/usr/lib/python2.4/site-packages/scikits/openopt/Kernel/runProbSolver.py", line 219, in runProbSolver solver(p) File "/usr/lib/python2.4/site-packages/scikits/openopt/solvers/CoinOr/ipopt_oo.py", line 70, in __solver__ p.iterfcn(p.x0) File "/usr/lib/python2.4/site-packages/scikits/openopt/Kernel/BaseProblem.py", line 57, in self.iterfcn = lambda *args: ooIter(self, *args)# this parameter is only for OpenOpt developers, not common users File "/usr/lib/python2.4/site-packages/scikits/openopt/Kernel/ooIter.py", line 78, in ooIter for df in p.graphics.drawFuncs: df(p) File "/usr/lib/python2.4/site-packages/scikits/openopt/Kernel/ooGraphics.py", line 127, in oodraw if self.nSubPlots>1: pylab.subplot(self.nSubPlots, 1, 1) File "/usr/lib/python2.4/site-packages/matplotlib/pyplot.py", line 519, in subplot fig = gcf() File "/usr/lib/python2.4/site-packages/matplotlib/pyplot.py", line 210, in gcf return figure() File "/usr/lib/python2.4/site-packages/matplotlib/pyplot.py", line 195, in figure FigureClass=FigureClass, File "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wxagg.py", line 119, in new_figure_manager frame = FigureFrameWxAgg(num, fig) File "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wx.py", line 1237, in __init__ self.canvas.SetInitialSize(wx.Size(fig.bbox.width, fig.bbox.height)) AttributeError: 'FigureCanvasWxAgg' object has no attribute 'SetInitialSize' - 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
[matplotlib-devel] Adding Backends
Hi, Is there any reason that adding a backend requires modifying both rcsetup.py and the __init__.py in the backends subdirectory? Couldn't rcsetup.py fetch the list from the __init__.py (or vice-versa)? Thanks, Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma - 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
Re: [matplotlib-devel] Adding Backends
Ryan May wrote: > Hi, > > Is there any reason that adding a backend requires modifying both > rcsetup.py and the __init__.py in the backends subdirectory? Couldn't > rcsetup.py fetch the list from the __init__.py (or vice-versa)? > > Thanks, > > Ryan > Ryan, rcsetup can't get it from backends/__init__.py because that would set a backend selection in stone. But backends/__init__.py can get it from rcsetup, and I am in the process of making that change on the trunk. This duplication had annoyed me earlier, but I didn't do anything about it then. Thanks for the prompt. Are you actually looking into adding a new backend? Eric - 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
Re: [matplotlib-devel] Adding Backends
Eric Firing wrote: > rcsetup can't get it from backends/__init__.py because that would set a > backend selection in stone. But backends/__init__.py can get it from > rcsetup, and I am in the process of making that change on the trunk. > This duplication had annoyed me earlier, but I didn't do anything about > it then. Thanks for the prompt. Good to know. If you can't get to it, let me know and I'll take a stab. > Are you actually looking into adding a new backend? Yeah. I'm finally getting back around to the OpenGL backend I've been kicking around for awhile now, based (right now) on Gtk. gtkglext (which has python bindings) will let you render to a pixmap, so that should make it easy to integrate into the current matplotlib way of doing things. If things go well, I should have more on this after awhile. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma - 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
Re: [matplotlib-devel] Adding Backends
Ryan May wrote: > Eric Firing wrote: >> rcsetup can't get it from backends/__init__.py because that would set >> a backend selection in stone. But backends/__init__.py can get it >> from rcsetup, and I am in the process of making that change on the >> trunk. This duplication had annoyed me earlier, but I didn't do >> anything about it then. Thanks for the prompt. > > Good to know. If you can't get to it, let me know and I'll take a stab. It's done now. > >> Are you actually looking into adding a new backend? > > Yeah. I'm finally getting back around to the OpenGL backend I've been > kicking around for awhile now, based (right now) on Gtk. gtkglext > (which has python bindings) will let you render to a pixmap, so that > should make it easy to integrate into the current matplotlib way of > doing things. If things go well, I should have more on this after awhile. Is the motivation 3D plotting? Eric - 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