[matplotlib-devel] AttributeError: 'module' object has no attribute 'HTTPSHandler'
Hi all, I am using the latest matplotlib. How can I resolve the following problem ? import matplotlib Traceback (most recent call last): File stdin, line 1, in module File /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/__init__.py, line 133, in module from matplotlib.rcsetup import (defaultParams, File /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/rcsetup.py, line 19, in module from matplotlib.colors import is_color_like File /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/colors.py, line 54, in module import matplotlib.cbook as cbook File /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/cbook.py, line 453, in module class ViewVCCachedServer(urllib2.HTTPSHandler): AttributeError: 'module' object has no attribute 'HTTPSHandler' Thanks in advance Nils -- Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] AttributeError: 'module' object has no attribute 'HTTPSHandler'
On Tue, 29 Mar 2011 10:01:34 +0200 Nils Wagner nwag...@iam.uni-stuttgart.de wrote: Hi all, I am using the latest matplotlib. How can I resolve the following problem ? import matplotlib Traceback (most recent call last): File stdin, line 1, in module File /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/__init__.py, line 133, in module from matplotlib.rcsetup import (defaultParams, File /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/rcsetup.py, line 19, in module from matplotlib.colors import is_color_like File /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/colors.py, line 54, in module import matplotlib.cbook as cbook File /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/cbook.py, line 453, in module class ViewVCCachedServer(urllib2.HTTPSHandler): AttributeError: 'module' object has no attribute 'HTTPSHandler' Thanks in advance Nils dir (urllib2) ['AbstractBasicAuthHandler', 'AbstractDigestAuthHandler', 'AbstractHTTPHandler', 'BaseHandler', 'CacheFTPHandler', 'FTPHandler', 'FileHandler', 'GopherError', 'GopherHandler', 'HTTPBasicAuthHandler', 'HTTPCookieProcessor', 'HTTPDefaultErrorHandler', 'HTTPDigestAuthHandler', 'HTTPError', 'HTTPErrorProcessor', 'HTTPHandler', 'HTTPPasswordMgr', 'HTTPPasswordMgrWithDefaultRealm', 'HTTPRedirectHandler', 'OpenerDirector', 'ProxyBasicAuthHandler', 'ProxyDigestAuthHandler', 'ProxyHandler', 'Request', 'StringIO', 'URLError', 'UnknownHandler', '__builtins__', '__doc__', '__file__', '__name__', '__version__', '_cut_port_re', '_opener', '_parse_proxy', 'addinfourl', 'base64', 'bisect', 'build_opener', 'ftpwrapper', 'getproxies', 'hashlib', 'httplib', 'install_opener', 'localhost', 'mimetools', 'noheaders', 'os', 'parse_http_list', 'parse_keqv_list', 'posixpath', 'quote', 'random', 'randombytes', 're', 'request_host', 'socket', 'splitattr', 'splitgophertype', 'splithost', 'splitpasswd', 'splitport', 'splitquery', 'splittype', 'splituser', 'splitvalue', 'sys', 'time', 'unquote', 'unwrap', 'url2pathname', 'urlopen', 'urlparse'] urllib2.__version__ '2.5' -- Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
[matplotlib-devel] can't copy 'lib/matplotlib/mathtext.py'
Hi all, I cannot install matplotlib from recent svn. python setup.py install --prefix=$HOME/local BUILDING MATPLOTLIB matplotlib: 0.98.6svn python: 2.5.1 (r251:54863, Dec 21 2007, 09:21:07) [GCC 3.4.6 20060404 (Red Hat 3.4.6-3)] platform: linux2 REQUIRED DEPENDENCIES numpy: 1.4.0.dev6708 freetype2: 9.7.3 OPTIONAL BACKEND DEPENDENCIES libpng: 1.2.7 Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4 wxPython: 2.8.9.1 * WxAgg extension not required for wxPython = 2.8 Gtk+: no * Building for Gtk+ requires pygtk; you must be able * to import gtk in your build/install environment Mac OS X native: no Qt: no Qt4: no Cairo: no OPTIONAL DATE/TIMEZONE DEPENDENCIES datetime: present, version unknown dateutil: matplotlib will provide pytz: 2008c OPTIONAL USETEX DEPENDENCIES dvipng: no ghostscript: 7.07 latex: 3.14159 pdftops: 3.00 [Edit setup.cfg to suppress the above messages] pymods ['pylab'] packages ['matplotlib', 'matplotlib.backends', 'matplotlib.projections', 'mpl_toolkits', 'matplotlib.sphinxext', 'matplotlib.numerix', 'matplotlib.numerix.mlab', 'matplotlib.numerix.ma', 'matplotlib.numerix.linear_algebra', 'matplotlib.numerix.random_array', 'matplotlib.numerix.fft', 'matplotlib.delaunay', 'dateutil', 'dateutil/zoneinfo'] running install running build running build_py creating build creating build/lib.linux-x86_64-2.5 copying lib/pylab.py - build/lib.linux-x86_64-2.5 creating build/lib.linux-x86_64-2.5/matplotlib copying lib/matplotlib/hatch.py - build/lib.linux-x86_64-2.5/matplotlib copying lib/matplotlib/widgets.py - build/lib.linux-x86_64-2.5/matplotlib error: can't copy 'lib/matplotlib/mathtext.py': doesn't exist or not a regular file Nils -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
[matplotlib-devel] Test
python -i svn/matplotlib/test/run-mpl-test.py ... == FAIL: Test numpy shaped data. -- Traceback (most recent call last): File /home/nwagner/svn/matplotlib/test/test_plots/TestPlot.py, line 129, in test_shaped_data self.checkImage( fname ) File /home/nwagner/svn/matplotlib/test/mplTest/MplTestCase.py, line 57, in checkImage self.fail( msg + \n + errorMessage ) AssertionError: Error: Image files did not match. RMS Value: 3.26978179241 Expected: /home/nwagner/svn/matplotlib/test/test_plots/baseline/TestPlot/shaped_data.png Actual: /home/nwagner/svn/matplotlib/test/test_plots/outputs/shaped_data.png Tolerance: 0.001 -- Ran 16 tests in 6.476s FAILED (failures=1) -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
[matplotlib-devel] backends/_tkagg.so: undefined symbol
Hi all, I am using latest svn. My script worked until last week. If I run it now matplotlib version 0.98.6svn verbose.level helpful interactive is False units is False platform is linux2 Using fontManager instance from /data/home/nwagner/.matplotlib/fontList.cache Traceback (most recent call last): File read_csv.py, line 2, in module from pylab import plot, show,subplot, xlabel, ylabel, savefig, legend, connect, close File /data/home/nwagner/local/lib/python2.5/site-packages/pylab.py, line 1, in module from matplotlib.pylab import * File /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/pylab.py, line 253, in module from matplotlib.pyplot import * File /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/pyplot.py, line 75, in module new_figure_manager, draw_if_interactive, show = pylab_setup() File /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/backends/__init__.py, line 25, in pylab_setup globals(),locals(),[backend_name]) File /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/backends/backend_tkagg.py, line 8, in module import tkagg # Paint image to Tk photo blitter extension File /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/backends/tkagg.py, line 1, in module import _tkagg ImportError: /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/backends/_tkagg.so: undefined symbol: _Z15py_convert_bboxP7_objectRdS1_S1_S1_ Any idea ? Nils -- Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
[matplotlib-devel] Fwd: python make.py html
--- the forwarded message follows --- ---BeginMessage--- On Thu, 29 Jan 2009 16:11:35 -0500 Michael Droettboom md...@stsci.edu wrote: Comments below. Nils Wagner wrote: Hi all, I tried to build the HTML documentation. Here are some failures matplotlib/doc/mpl_examples/pylab_examples/axes_divider.py Traceback (most recent call last): File /home/nwagner/svn/matplotlib/doc/sphinxext/plot_directive.py, line 187, in makefig runfile(fullpath) File /home/nwagner/svn/matplotlib/doc/sphinxext/plot_directive.py, line 128, in runfile module = imp.load_module(__main__, fd, fname, ('py', 'r', imp.PY_SOURCE)) File axes_divider.py, line 168 rs, as = s.get_size(renderer) ^ SyntaxError: invalid syntax warnings.warn(s) examples/pylab_examples/axes_grid /home/nwagner/svn/matplotlib/doc/sphinxext/plot_directive.py:190: UserWarning: Exception running plot /home/nwagner/svn/matplotlib/doc/mpl_examples/pylab_examples/axes_grid.py Traceback (most recent call last): File /home/nwagner/svn/matplotlib/doc/sphinxext/plot_directive.py, line 187, in makefig runfile(fullpath) File /home/nwagner/svn/matplotlib/doc/sphinxext/plot_directive.py, line 128, in runfile module = imp.load_module(__main__, fd, fname, ('py', 'r', imp.PY_SOURCE)) File axes_grid.py, line 5, in module File /home/nwagner/svn/matplotlib/doc/mpl_examples/pylab_examples/axes_divider.py, line 168 rs, as = s.get_size(renderer) ^ SyntaxError: invalid syntax I can't reproduce this here. What version of matplotlib are you running? warnings.warn(s) Traceback (most recent call last): File /home/nwagner/svn/matplotlib/doc/sphinxext/plot_directive.py, line 187, in makefig runfile(fullpath) File /home/nwagner/svn/matplotlib/doc/sphinxext/plot_directive.py, line 128, in runfile module = imp.load_module(__main__, fd, fname, ('py', 'r', imp.PY_SOURCE)) File geo_demo.py, line 9, in module File /home/nwagner/local/lib64/python2.6/site-packages/matplotlib/pyplot.py, line 636, in subplot a = fig.add_subplot(*args, **kwargs) File /home/nwagner/local/lib64/python2.6/site-packages/matplotlib/figure.py, line 690, in add_subplot a = subplot_class_factory(projection_class)(self, *args, **kwargs) File /home/nwagner/local/lib64/python2.6/site-packages/matplotlib/axes.py, line 7460, in __init__ self._axes_class.__init__(self, fig, self.figbox, **kwargs) File custom_projection_example.py, line 35, in __init__ TypeError: expected string or Unicode object, NoneType found oc/sphinxext/plot_directive.py:190: UserWarning: Exception running plot /home/nwagner/svn/matplotlib/doc/mpl_examples/pylab_examples/loadrec.py Traceback (most recent call last): File /home/nwagner/svn/matplotlib/doc/sphinxext/plot_directive.py, line 187, in makefig runfile(fullpath) File /home/nwagner/svn/matplotlib/doc/sphinxext/plot_directive.py, line 128, in runfile module = imp.load_module(__main__, fd, fname, ('py', 'r', imp.PY_SOURCE)) File loadrec.py, line 14, in module File /home/nwagner/local/lib64/python2.6/site-packages/mpl_toolkits/exceltools.py, line 31, in module raise ImportError('You must install xlwt or pyExcelterator to use the exceltools') ImportError: You must install xlwt or pyExcelterator to use the exceltools This is exactly as it says: You must install xlwt or pyExcelterator to use the exceltools Since that particular example uses the exceltools, and you haven't installed it's requirements, it can't generate the example. Worst case, however, it should continue to generate the rest of the docs without it. Mike Hi Mike, I installed xlwt. I am using python2.6 on opensuse11.1 and matplotlib.__version__ '0.98.6svn' /home/nwagner/svn/matplotlib/doc/sphinxext/plot_directive.py, line 128, in runfile module = imp.load_module(__main__, fd, fname, ('py', 'r', imp.PY_SOURCE)) File artist_tests.py, line 30, in module File /home/nwagner/local/lib64/python2.6/site-packages/matplotlib/collections.py, line 917, in __init__ self.set_segments(segments) File /home/nwagner/local/lib64/python2.6/site-packages/matplotlib/collections.py, line 927, in set_segments seg = np.asarray(seg, np.float_) File /home/nwagner/local/lib64/python2.6/site-packages/numpy/core/numeric.py, line 230, in asarray return array(a, dtype, copy=False, order=order) ValueError: setting an array element with a sequence. warnings.warn(s) examples/units/bar_demo2 ...examples/units/bar_unit_demo /home/nwagner/svn/matplotlib/doc/sphinxext/plot_directive.py:190: UserWarning: Exception running plot /home/nwagner/svn/matplotlib/doc/mpl_examples/units/bar_unit_demo.py Traceback (most recent call last): File /home/nwagner/svn/matplotlib/doc/sphinxext/plot_directive.py, line 187, in makefig runfile(fullpath) File /home/nwagner/svn/matplotlib/doc/sphinxext
Re: [matplotlib-devel] Status of pylab example loadrec.py
On Wed, 10 Dec 2008 21:11:12 -0600 John Hunter [EMAIL PROTECTED] wrote: On Wed, Dec 10, 2008 at 4:26 PM, John Hunter [EMAIL PROTECTED] wrote: Is it planned to adapt the example wrt xlwt ? http://pypi.python.org/pypi/xlwt True it is no longer maintained, but it does work. We are looking into xlwt (I wasn't aware of it until today when you forwarded the message) I've added support for xlwt in svn r6560 -- give it a whirl JDH Hi John, I have upgraded to r6561. python test.py --verbose-helpful $HOME=/data/home/nwagner CONFIGDIR=/data/home/nwagner/.matplotlib matplotlib data path /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/mpl-data loaded rc file /data/home/nwagner/.matplotlib/matplotlibrc Traceback (most recent call last): File test.py, line 1, in module import matplotlib.mlab as mlab File /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/__init__.py, line 700, in module rcParams['text.usetex'] = checkdep_usetex(rcParams['text.usetex']) File /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/__init__.py, line 367, in checkdep_usetex dvipng_v = checkdep_dvipng() File /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/__init__.py, line 261, in checkdep_dvipng stderr=subprocess.PIPE) File /data/home/nwagner/local/lib/python2.5/subprocess.py, line 593, in __init__ errread, errwrite) File /data/home/nwagner/local/lib/python2.5/subprocess.py, line 1079, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory Any idea ? Nils -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] Status of pylab example loadrec.py
On Thu, 11 Dec 2008 09:13:02 +0100 Nils Wagner [EMAIL PROTECTED] wrote: On Wed, 10 Dec 2008 21:11:12 -0600 John Hunter [EMAIL PROTECTED] wrote: On Wed, Dec 10, 2008 at 4:26 PM, John Hunter [EMAIL PROTECTED] wrote: Is it planned to adapt the example wrt xlwt ? http://pypi.python.org/pypi/xlwt True it is no longer maintained, but it does work. We are looking into xlwt (I wasn't aware of it until today when you forwarded the message) I've added support for xlwt in svn r6560 -- give it a whirl JDH Hi John, I have upgraded to r6561. python test.py --verbose-helpful $HOME=/data/home/nwagner CONFIGDIR=/data/home/nwagner/.matplotlib matplotlib data path /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/mpl-data loaded rc file /data/home/nwagner/.matplotlib/matplotlibrc Traceback (most recent call last): File test.py, line 1, in module import matplotlib.mlab as mlab File /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/__init__.py, line 700, in module rcParams['text.usetex'] = checkdep_usetex(rcParams['text.usetex']) File /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/__init__.py, line 367, in checkdep_usetex dvipng_v = checkdep_dvipng() File /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/__init__.py, line 261, in checkdep_dvipng stderr=subprocess.PIPE) File /data/home/nwagner/local/lib/python2.5/subprocess.py, line 593, in __init__ errread, errwrite) File /data/home/nwagner/local/lib/python2.5/subprocess.py, line 1079, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory Any idea ? Nils Works for me if I disable text.usetex in ~/.matplotlib/matplotlibrc, but for what reason ? ### LaTeX customizations. See http://www.scipy.org/Wiki/Cookbook/Matplotlib/UsingTex #text.usetex : True # use latex for all text handling. The following fonts Nils -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] Status of pylab example loadrec.py
On Thu, 11 Dec 2008 10:33:20 -0800 Andrew Straw straw...@astraw.com wrote: Hi Nils. I think I fixed the issue causing the traceback with r6563. Can you please update and try again with text.usetex enabled? My guess is that you don't have dvipng installed, which was causing the detection check to throw a traceback rather than return a value signifying undetected. So, enabling usetex should again trigger the check, but hopefully this time it will fail gracefully rather than crashing. -Andrew Hi Andrew, Thank you very much ! Works for me. import matplotlib.mlab as mlab /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/__init__.py:371: UserWarning: matplotlibrc text.usetex can not be used with *Agg backend unless dvipng-1.5 or later is installed on your system warnings.warn( 'matplotlibrc text.usetex can not be used with *Agg ' Cheers, Nils -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
[matplotlib-devel] Status of pylab example loadrec.py
Hi all, The example loadrec.py illustrates the usage of PyExcelerator. However it seems PyExcelerator is no longer maintained Is it planned to adapt the example wrt xlwt ? http://pypi.python.org/pypi/xlwt Cheers, Nils -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
[matplotlib-devel] Display problems
Hi all, I have installed matplotlib locally on a linux box (without root access). Is it possible for o t h e r users to use my local matplotlib installation ? The problem is that show() doesn't produce a result on the screen. Any pointer would be appreciated. Nils - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] Display problems
On Fri, 8 Aug 2008 08:47:11 -0500 John Hunter [EMAIL PROTECTED] wrote: On Fri, Aug 8, 2008 at 8:20 AM, Nils Wagner [EMAIL PROTECTED] wrote: I have installed matplotlib locally on a linux box (without root access). Is it possible for o t h e r users to use my local matplotlib installation ? The problem is that show() doesn't produce a result on the screen. Any pointer would be appreciated. This is really a question for matplotlib-users, but, there is no reason this shouldn't work. Some of my colleagues have run out of my directory before. * what backend are they using? * what test script are they trying (I suggest examples/pylab_examples/simple_plot.py * what is the output of --verbose-debug when the other users run this script? * does it help to try different backends, eg if they run the script with -dTKAgg, -dWXAgg, -dQt4Agg or -dGTKAgg * what are the permissions on your install directory -- can the other uses see all the files? * what version of matplotlib are you using? What platform (you say linux, but when reporting problems it helps to include as much detail as possible). Are the users running from the console or an X11 session? JDH Hi John, I think it was a missing matplotlibrc in ~/.matplotlib Now it works fine. Thank you very much ! Next time I will post to matploblib-user. Sorry for that. Nils - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] AttributeError: 'module' object has no attribute 'CallLater'
On Tue, 29 Jul 2008 12:10:09 -0400 Paul Kienzle [EMAIL PROTECTED] wrote: On Tue, Jul 29, 2008 at 05:46:59PM +0200, Nils Wagner wrote: On Mon, 28 Jul 2008 15:32:38 -0400 WxPython experts: what version do we require? If it is earlier than 2.8, then it appears we badly need a testing procedure to ensure compatibility. (A testing procedure for python version compatibility would be nice, also--has anyone looked into what it would take to set up and run a buildbot?) Rather than cycling through the mailing list for each individual problem, can you please put together a patch that works on wx-2.6? Preferably program to the 2.8 interface so that we don't build up too much cruft. For example, IsVisible-IsShownOnScreen can be handled in __init__ with (untested!): if not hasattr(self,'IsShownOnScreen'): self.IsShownOnScreen = self.IsVisible I would like to test the changes on 2.8, but I'm gone July 31 to after Scipy. - Paul Hi Paul, Thank you for your prompt reply. Where should I add the lines if not hasattr(self,'IsShownOnScreen'): self.IsShownOnScreen = self.IsVisible I assume the corresponding file is in the directory matplotlib/lib/matplotlib/backends Is that correct ? I will try it asap. Thanks in advance Nils - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] AttributeError: 'module' object has no attribute 'CallLater'
On Tue, 29 Jul 2008 13:01:04 -0500 John Hunter [EMAIL PROTECTED] wrote: On Tue, Jul 29, 2008 at 11:19 AM, Nils Wagner [EMAIL PROTECTED] wrote: Is that correct ? I will try it asap. Thanks in advance OK, I just added a compatibility method for isShownOnScreen. Can you give svn another test drive with your wx version, Nils? Thanks, JDH Hi John, My wxpython version (2.5.3.1) seems to be outdated. Anyway, is there any workaround ? File /usr/lib/python2.4/site-packages/matplotlib/pyplot.py, line 2237, in spy b = ishold() File /usr/lib/python2.4/site-packages/matplotlib/pyplot.py, line 466, in ishold return gca().ishold() File /usr/lib/python2.4/site-packages/matplotlib/pyplot.py, line 566, in gca ax = gcf().gca(**kwargs) File /usr/lib/python2.4/site-packages/matplotlib/pyplot.py, line 270, in gcf return figure() File /usr/lib/python2.4/site-packages/matplotlib/pyplot.py, line 247, in figure FigureClass=FigureClass, File /usr/lib/python2.4/site-packages/matplotlib/backends/backend_wxagg.py, line 125, in new_figure_manager frame = FigureFrameWxAgg(num, fig) File /usr/lib/python2.4/site-packages/matplotlib/backends/backend_wx.py, line 1346, in __init__ self.canvas = self.get_canvas(fig) File /usr/lib/python2.4/site-packages/matplotlib/backends/backend_wxagg.py, line 32, in get_canvas return FigureCanvasWxAgg(self, -1, fig) File /usr/lib/python2.4/site-packages/matplotlib/backends/backend_wx.py, line 701, in __init__ self.IsShownOnScreen = self.IsVisible AttributeError: 'FigureCanvasWxAgg' object has no attribute 'IsVisible' Nils - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
[matplotlib-devel] Fwd: AttributeError: 'module' object has no attribute 'CallLater'
--- the forwarded message follows --- ---BeginMessage--- On Sun, 27 Jul 2008 07:19:24 -1000 Eric Firing [EMAIL PROTECTED] wrote: Nils Wagner wrote: Hi all, I found a new bug $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.3rc1 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 backend WXAgg version 2.5.3.1 spy(K_bc) File /usr/lib/python2.4/site-packages/matplotlib/pyplot.py, line 2237, in spy b = ishold() File /usr/lib/python2.4/site-packages/matplotlib/pyplot.py, line 466, in ishold return gca().ishold() File /usr/lib/python2.4/site-packages/matplotlib/pyplot.py, line 566, in gca ax = gcf().gca(**kwargs) File /usr/lib/python2.4/site-packages/matplotlib/pyplot.py, line 270, in gcf return figure() File /usr/lib/python2.4/site-packages/matplotlib/pyplot.py, line 247, 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 1332, in __init__ self.canvas = self.get_canvas(fig) File /usr/lib/python2.4/site-packages/matplotlib/backends/backend_wxagg.py, line 32, in get_canvas return FigureCanvasWxAgg(self, -1, fig) File /usr/lib/python2.4/site-packages/matplotlib/backends/backend_wx.py, line 734, in __init__ self.idletimer = wx.CallLater(1,self._onDrawIdle) AttributeError: 'module' object has no attribute 'CallLater' It looks like this was introduced in wxPython 2.7.1: http://mail.python.org/pipermail/python-announce-list/2006-October/005326.html I have changed backend_wx to use the backwards-compatible alias, FutureCall. Eric Hi Eric, Thank you very much ! The next problem is the following Traceback (most recent call last): File /usr/lib/python2.4/site-packages/matplotlib/backends/backend_wx.py, line 1094, in _onPaint self.draw(drawDC=drawDC) File /usr/lib/python2.4/site-packages/matplotlib/backends/backend_wxagg.py, line 64, in draw self.gui_repaint(drawDC=drawDC) File /usr/lib/python2.4/site-packages/matplotlib/backends/backend_wx.py, line 995, in gui_repaint if self.IsShownOnScreen(): AttributeError: 'FigureCanvasWxAgg' object has no attribute 'IsShownOnScreen' Nils ---End Message--- - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
[matplotlib-devel] AttributeError: 'module' object has no attribute 'CallLater'
Hi all, I found a new bug $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.3rc1 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 backend WXAgg version 2.5.3.1 spy(K_bc) File /usr/lib/python2.4/site-packages/matplotlib/pyplot.py, line 2237, in spy b = ishold() File /usr/lib/python2.4/site-packages/matplotlib/pyplot.py, line 466, in ishold return gca().ishold() File /usr/lib/python2.4/site-packages/matplotlib/pyplot.py, line 566, in gca ax = gcf().gca(**kwargs) File /usr/lib/python2.4/site-packages/matplotlib/pyplot.py, line 270, in gcf return figure() File /usr/lib/python2.4/site-packages/matplotlib/pyplot.py, line 247, 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 1332, in __init__ self.canvas = self.get_canvas(fig) File /usr/lib/python2.4/site-packages/matplotlib/backends/backend_wxagg.py, line 32, in get_canvas return FigureCanvasWxAgg(self, -1, fig) File /usr/lib/python2.4/site-packages/matplotlib/backends/backend_wx.py, line 734, in __init__ self.idletimer = wx.CallLater(1,self._onDrawIdle) AttributeError: 'module' object has no attribute 'CallLater' Nils - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
[matplotlib-devel] ParseFatalException: Expected end of math '$'
Hi all, Is there a way to use title(r'$ M= I_3 K=\left[\begin{array}{rrr} 2\,k -k 0 \\ -k 2\,k+p -(k+p) \\ 0 -(k+p) k+p\end{array}\right]$') It currently fails with Exception in Tkinter callback Traceback (most recent call last): File /data/home/nwagner/local/lib/python2.5/lib-tk/Tkinter.py, line 1403, in __call__ return self.func(*args) File /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/backends/backend_tkagg.py, line 202, in resize self.show() File /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/backends/backend_tkagg.py, line 205, in draw FigureCanvasAgg.draw(self) File /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/backends/backend_agg.py, line 261, in draw self.figure.draw(self.renderer) File /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/figure.py, line 759, in draw for a in self.axes: a.draw(renderer) File /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/axes.py, line 1514, in draw a.draw(renderer) File /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/text.py, line 297, in draw bbox, info = self._get_layout(renderer) File /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/text.py, line 197, in _get_layout line, self._fontproperties, ismath=self.is_math_text(line)) File /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/backends/backend_agg.py, line 135, in get_text_width_height_descent self.mathtext_parser.parse(s, self.dpi, prop) File /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/mathtext.py, line 2735, in parse box = self._parser.parse(s, font_output, fontsize, dpi) File /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/mathtext.py, line 2208, in parse self._expression.parseString(s) File /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/pyparsing.py, line 1048, in parseString loc, tokens = self._parse( instring, 0 ) File /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/pyparsing.py, line 981, in _parseCache value = self._parseNoCache( instring, loc, doActions, callPreParse ) File /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/pyparsing.py, line 924, in _parseNoCache loc,tokens = self.parseImpl( instring, preloc, doActions ) File /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/pyparsing.py, line 2559, in parseImpl return self.expr._parse( instring, loc, doActions, callPreParse=False ) File /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/pyparsing.py, line 981, in _parseCache value = self._parseNoCache( instring, loc, doActions, callPreParse ) File /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/pyparsing.py, line 924, in _parseNoCache loc,tokens = self.parseImpl( instring, preloc, doActions ) File /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/pyparsing.py, line 2307, in parseImpl loc, exprtokens = e._parse( instring, loc, doActions ) File /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/pyparsing.py, line 981, in _parseCache value = self._parseNoCache( instring, loc, doActions, callPreParse ) File /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/pyparsing.py, line 924, in _parseNoCache loc,tokens = self.parseImpl( instring, preloc, doActions ) File /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/pyparsing.py, line 2672, in parseImpl loc, tokens = self.expr._parse( instring, loc, doActions, callPreParse=False ) File /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/pyparsing.py, line 981, in _parseCache value = self._parseNoCache( instring, loc, doActions, callPreParse ) File /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/pyparsing.py, line 924, in _parseNoCache loc,tokens = self.parseImpl( instring, preloc, doActions ) File /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/pyparsing.py, line 2307, in parseImpl loc, exprtokens = e._parse( instring, loc, doActions ) File /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/pyparsing.py, line 981, in _parseCache value = self._parseNoCache( instring, loc, doActions, callPreParse ) File /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/pyparsing.py, line 924, in _parseNoCache loc,tokens = self.parseImpl( instring, preloc, doActions ) File /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/pyparsing.py, line 2416, in parseImpl ret = e._parse( instring, loc, doActions ) File /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/pyparsing.py, line 981, in _parseCache value = self._parseNoCache( instring, loc, doActions, callPreParse ) File
[matplotlib-devel] matplotlib hangs
Hi all, Since *yesterday* I have some trouble with pylab. Some program hang. I cannot use Ctrl C to kill them. Ctrl Z works. If I use ps I get 1091 pts/500:00:02 python 1119 pts/500:00:00 gs defunct gs is somehow connected to my problem. I can kill the job by kill -9 1091. Then the gs process (1119) also vanishes. Any pointer ? I am using svn from trunk. Nils - 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] PNG transparency
On Wed, 18 Jun 2008 09:17:27 -0500 John Hunter [EMAIL PROTECTED] wrote: On Wed, Jun 18, 2008 at 8:56 AM, Nils Wagner [EMAIL PROTECTED] wrote: Is it possible to produce transparent png's with mpl ? Yes, but you must explicitly set the transparency on every object you want to be transparent:: fig = plt.figure() fig.figurePatch.set_alpha(0.5) ax = fig.add_subplot(111) ax.axesPatch.set_alpha(0.5) l, = ax.plot(x, y, alpha=0.8) t = ax.set_xlabel('hi', alpha=0.8) and so on I wonder if we should support a global rc alpha +1 Nils - 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] IndexError: Unexpected SeqBaseT length.
Hi all, If I run the attached test I obtain an IndexError: Unexpected SeqBaseT length python -i test_struve.py --verbose-helpful $HOME=/home/nwagner CONFIGDIR=/home/nwagner/.matplotlib matplotlib data path /usr/local/lib64/python2.5/site-packages/matplotlib/mpl-data loaded rc file /home/nwagner/.matplotlib/matplotlibrc matplotlib version 0.98.0 verbose.level helpful interactive is False units is False platform is linux2 Using fontManager instance from /home/nwagner/.matplotlib/fontManager.cache numerix numpy 1.2.0.dev5264 backend GTKAgg version 2.10.3 Found dvipng version 1.5 Traceback (most recent call last): File /usr/local/lib64/python2.5/site-packages/matplotlib/backends/backend_gtk.py, line 331, in expose_event self._render_figure(self._pixmap, w, h) File /usr/local/lib64/python2.5/site-packages/matplotlib/backends/backend_gtkagg.py, line 75, in _render_figure FigureCanvasAgg.draw(self) File /usr/local/lib64/python2.5/site-packages/matplotlib/backends/backend_agg.py, line 256, in draw self.figure.draw(self.renderer) File /usr/local/lib64/python2.5/site-packages/matplotlib/figure.py, line 825, in draw for a in self.axes: a.draw(renderer) File /usr/local/lib64/python2.5/site-packages/matplotlib/axes.py, line 1502, in draw a.draw(renderer) File /usr/local/lib64/python2.5/site-packages/matplotlib/axis.py, line 674, in draw tick.draw(renderer) File /usr/local/lib64/python2.5/site-packages/matplotlib/axis.py, line 173, in draw self.label1.draw(renderer) File /usr/local/lib64/python2.5/site-packages/matplotlib/text.py, line 764, in draw Text.draw(self, renderer) File /usr/local/lib64/python2.5/site-packages/matplotlib/text.py, line 298, in draw bbox, info = self._get_layout(renderer) File /usr/local/lib64/python2.5/site-packages/matplotlib/text.py, line 198, in _get_layout line, self._fontproperties, ismath=self.is_math_text(line)) File /usr/local/lib64/python2.5/site-packages/matplotlib/backends/backend_agg.py, line 128, in get_text_width_height_descent Z = texmanager.get_grey(s, size, self.dpi) File /usr/local/lib64/python2.5/site-packages/matplotlib/texmanager.py, line 367, in get_grey X = read_png(os.path.join(self.texcache, pngfile)) IndexError: Unexpected SeqBaseT length. Any idea ? Nils from scipy import * from pylab import plot, show # http://projects.scipy.org/scipy/scipy/ticket/679 x = linspace(0.01,21.,100) y = special.struve(-3,x) plot(x,y) show() - 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] Blocker
Hi all, I cannot build matplotlib from svn since last Friday. Any idea ? Nils cc1plus: Warnung: Kommandozeilenoption -Wstrict-prototypes ist gültig für Ada/C/ObjC, aber nicht für C++ g++ -pthread -shared build/temp.linux-x86_64-2.5/agg24/src/agg_curves.o build/temp.linux-x86_64-2.5/agg24/src/agg_bezier_arc.o build/temp.linux-x86_64-2.5/agg24/src/agg_trans_affine.o build/temp.linux-x86_64-2.5/agg24/src/agg_vcgen_stroke.o build/temp.linux-x86_64-2.5/CXX/cxx_extensions.o build/temp.linux-x86_64-2.5/CXX/cxxsupport.o build/temp.linux-x86_64-2.5/CXX/IndirectPythonInterface.o build/temp.linux-x86_64-2.5/CXX/cxxextensions.o build/temp.linux-x86_64-2.5/src/path.o -L/usr/local/lib -L/usr/lib -L/usr/local/lib64 -L/usr/lib64 -lpng -lz -lstdc++ -lm -o build/lib.linux-x86_64-2.5/matplotlib/_path.so /usr/bin/ld: cannot find -lpng collect2: ld gab 1 als Ende-Status zurück error: command 'g++' failed with exit status 1 - 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] AttributeError: 'FigureCanvasWxAgg' object has no attribute 'SetInitialSize'
On Mon, 09 Jun 2008 07:41:05 -1000 Eric Firing [EMAIL PROTECTED] wrote: Nils Wagner wrote: Hi Eric, I have still some trouble with the following example taken from openopt /usr/bin/python -i nlp_3.py 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 lambda 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.nSubPlots1: 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' Any idea ? No clue. When did it stop working? [EMAIL PROTECTED]:~/programs/py/mpl/mpl_trunk/lib/matplotlib$ rgrep SetInitialSize --include '*.py' . ./backends/backend_wx.py: self.canvas.SetInitialSize(wx.Size(fig.bbox.width, fig.bbox.height)) ./backends/backend_wx.py: self.canvas.SetInitialSize(wx.Size(width, height)) I can't find anything in the code that defines SetInitialSize. I didn't check the example nlp_3.py (from openopt) regularly. So I can't tell you when it stopped. As a workaround I have used another backend in my matplotlibrc CONFIGURATION BEGINS HERE # the default backend; one of GTK GTKAgg GTKCairo FltkAgg QtAgg TkAgg # Agg Cairo GD GDK Paint PS PDF SVG Template #backend : WXAgg backend : TkAgg Cheers, Nils - 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] 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 lambda 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.nSubPlots1: 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] 3D bar charts
Hi there, Is there any python tool to plot 3D bar graphs/charts ? Any pointer would be appreciated. Thanks in advance Nils - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
[matplotlib-devel] Trouble with mathtext.py
Hi all, I have some trouble with the following lines title(r'$\underline{\lambda}_n$= '+str(f)) plot(arange(0,len(data)),data,lw=2) xlabel('Iterations') ylabel('Largest eigenvalue') savefig('yuanlbl.png') IIRC the code worked before the recent changes in svn. How can I resolve the problem ? Traceback (most recent call last): File yuan2.py, line 84, in module savefig('yuanlbl.png') File /usr/local/lib64/python2.5/site-packages/matplotlib/pyplot.py, line 269, in savefig return fig.savefig(*args, **kwargs) File /usr/local/lib64/python2.5/site-packages/matplotlib/figure.py, line 782, in savefig self.canvas.print_figure(*args, **kwargs) File /usr/local/lib64/python2.5/site-packages/matplotlib/backend_bases.py, line 1195, in print_figure **kwargs) File /usr/local/lib64/python2.5/site-packages/matplotlib/backends/backend_gtkagg.py, line 103, in print_png return agg.print_png(filename, *args, **kwargs) File /usr/local/lib64/python2.5/site-packages/matplotlib/backends/backend_agg.py, line 396, in print_png self.draw() File /usr/local/lib64/python2.5/site-packages/matplotlib/backends/backend_agg.py, line 358, in draw self.figure.draw(self.renderer) File /usr/local/lib64/python2.5/site-packages/matplotlib/figure.py, line 624, in draw for a in self.axes: a.draw(renderer) File /usr/local/lib64/python2.5/site-packages/matplotlib/axes.py, line 1345, in draw a.draw(renderer) File /usr/local/lib64/python2.5/site-packages/matplotlib/text.py, line 317, in draw bbox, info = self._get_layout(renderer) File /usr/local/lib64/python2.5/site-packages/matplotlib/text.py, line 201, in _get_layout line, self._fontproperties, ismath=self.is_math_text(line)) File /usr/local/lib64/python2.5/site-packages/matplotlib/backends/backend_agg.py, line 233, in get_text_width_height_descent self.mathtext_parser.parse(s, self.dpi.get(), prop) File /usr/local/lib64/python2.5/site-packages/matplotlib/mathtext.py, line 2729, in parse box = self._parser.parse(s, font_output, fontsize, dpi) File /usr/local/lib64/python2.5/site-packages/matplotlib/mathtext.py, line 2204, in parse str(err)])) ValueError: $\underline{\lambda}_n$= 443.75221866615522 ^ Expected end of text (at char 0), (line:1, col:1) Nils - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
[matplotlib-devel] Typo in logo.py
Hi all, It should be float32 instead of Float32. python logo.py Traceback (most recent call last): File logo.py, line 7, in ? x = 1000*0.1*fromstring( NameError: name 'Float32' is not defined Nils - SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] Typo in logo.py
On Thu, 13 Dec 2007 09:07:42 +0100 Nils Wagner [EMAIL PROTECTED] wrote: Hi all, It should be float32 instead of Float32. python logo.py Traceback (most recent call last): File logo.py, line 7, in ? x = 1000*0.1*fromstring( NameError: name 'Float32' is not defined Nils Actually there are some more NameErrors in the examples grep -w 'Float*' *.py mri_demo.py:im = fromstring(file(dfile, 'rb').read(), UInt16).astype(Float) rc_traits.py: linewidth = traits.Float(0.5) rc_traits.py: markeredgewidth = traits.Float(0.5) rc_traits.py: markersize = traits.Float(6) rc_traits.py: linewidth = traits.Float(1.0) rc_traits.py: linewidth = traits.Float(0.5) python mri_demo.py Traceback (most recent call last): File mri_demo.py, line 6, in ? im = fromstring(file(dfile, 'rb').read(), UInt16).astype(Float) NameError: name 'UInt16' is not defined Nils - SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
[matplotlib-devel] Adding a water mark to a plot
Hi all, Is it possible to add a water mark to a plot ? Nils - SF.Net email is sponsored by: 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] font_manager.py
Hi all, python setup.py install --prefix=$HOME/local results in font_manager.py, line 115 finally: ^ SyntaxError: invalid syntax Nils I am using python2.3. - SF.Net email is sponsored by: 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] TypeError: sort() takes no keyword arguments
Hi all, I have installed matplotlib via svn on Centos (x86-64 python2.3). If I try to import pylab I get Python 2.3.4 (#1, May 2 2007, 19:18:17) [GCC 3.4.6 20060404 (Red Hat 3.4.6-8)] on linux2 Type help, copyright, credits or license for more information. from pylab import plot, show Traceback (most recent call last): File stdin, line 1, in ? File /data/home/nwagner/local/lib64/python2.3/site-packages/matplotlib-0.90.1-py2.3-linux-x86_64.egg/pylab.py, line 1, in ? from matplotlib.pylab import * File /data/home/nwagner/local/lib64/python2.3/site-packages/matplotlib-0.90.1-py2.3-linux-x86_64.egg/matplotlib/__init__.py, line 94, in ? from rcsetup import defaultParams, validate_backend, validate_toolbar File /data/home/nwagner/local/lib64/python2.3/site-packages/matplotlib-0.90.1-py2.3-linux-x86_64.egg/matplotlib/rcsetup.py, line 12, in ? from matplotlib.fontconfig_pattern import parse_fontconfig_pattern File /data/home/nwagner/local/lib64/python2.3/site-packages/matplotlib-0.90.1-py2.3-linux-x86_64.egg/matplotlib/fontconfig_pattern.py, line 21, in ? from matplotlib.pyparsing import Literal, OneOrMore, ZeroOrMore, Optional, Regex, \ File /data/home/nwagner/local/lib64/python2.3/site-packages/matplotlib-0.90.1-py2.3-linux-x86_64.egg/matplotlib/pyparsing.py, line 3151, in ? commonHTMLEntity = Combine( + oneOf(gt lt amp nbsp quot).setResultsName(entity) +;) File /data/home/nwagner/local/lib64/python2.3/site-packages/matplotlib-0.90.1-py2.3-linux-x86_64.egg/matplotlib/pyparsing.py, line 2849, in oneOf symbols.sort(reverse=True) TypeError: sort() takes no keyword arguments Any pointer would be appreciated. Nils - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
[matplotlib-devel] Cannot build matplotlib from latest svn
Hi all, I cannot build matplotlib from latest svn. I am using SuSE Linux 10.0 on x86_64. python setup.py install BUILDING MATPLOTLIB matplotlib: 0.90.1 (r3634) platform: linux2 REQUIRED DEPENDENCIES numpy: 1.0.4.dev3937 freetype2: 9.8.3 OPTIONAL DEPENDENCIES Traceback (most recent call last): File setup.py, line 223, in ? if check_for_gtk() and (BUILD_GTK or BUILD_GTKAGG): File /usr/local/svn/matplotlib/setupext.py, line 411, in check_for_gtk print_status(Gtk+, gtk+: %s, glib: %s, pygtk: %s, pygobject: %s % AttributeError: 'module' object has no attribute 'pygobject_version' Nils - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] Cannot build matplotlib from latest svn
Michael Droettboom wrote: I suspect you're running an earlier version of pygtk than I am that doesn't have pygobject_version. Please update matplotlib and try again. Thanks for finding this bug. Cheers, Mike Nils Wagner wrote: Hi all, I cannot build matplotlib from latest svn. I am using SuSE Linux 10.0 on x86_64. python setup.py install BUILDING MATPLOTLIB matplotlib: 0.90.1 (r3634) platform: linux2 REQUIRED DEPENDENCIES numpy: 1.0.4.dev3937 freetype2: 9.8.3 OPTIONAL DEPENDENCIES Traceback (most recent call last): File setup.py, line 223, in ? if check_for_gtk() and (BUILD_GTK or BUILD_GTKAGG): File /usr/local/svn/matplotlib/setupext.py, line 411, in check_for_gtk print_status(Gtk+, gtk+: %s, glib: %s, pygtk: %s, pygobject: %s % AttributeError: 'module' object has no attribute 'pygobject_version' Nils - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel Mike, Thank you for your prompt reply ! Now it works for me. Cheers, Nils BTW, I am using rpm -qi python-gtk Name: python-gtk Relocations: (not relocatable) Version : 2.8.0 Vendor: SUSE LINUX Products GmbH, Nuernberg, Germany Release : 3 Build Date: Tue 13 Sep 2005 02:56:46 AM CEST Install date: Mon 27 Feb 2006 11:04:09 AM CET Build Host: mahler.suse.de Group : Development/Libraries/Python Source RPM: python-gtk-2.8.0-3.src.rpm Size: 5041273 License: LGPL Signature : DSA/SHA1, Tue 13 Sep 2005 04:32:38 AM CEST, Key ID a84edae89c800aca Packager: http://www.suse.de/feedback URL : http://www.pygtk.org/ Summary : Python bindings for the GTK+ widget set Description : PyGTK is an extension module for python that gives you access to the GTK+ widget set. Just about anything you can write in C with GTK+ you can write in python with PyGTK (within reason), but with all of python's benefits. Authors: James Henstridge [EMAIL PROTECTED] Distribution: SUSE LINUX 10.0 (X86-64) - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
[matplotlib-devel] texmanager.py:137
Hi all, Is there a way to suppress the warning /usr/local/lib64/python2.5/site-packages/matplotlib/texmanager.py:137: UserWarning: No LaTeX-compatible font found for the sans-serif font family in rcParams. Using default. warnings.warn('No LaTeX-compatible font found for the %s font family in rcParams. Using default.' % ff) Nils - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
[matplotlib-devel] error: package directory 'lib/matplotlib/numerix/mlab' does not exist
Hi, I cannot install matplotlib from latest svn. error: package directory 'lib/matplotlib/numerix/mlab' does not exist Nils - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] error: package directory 'lib/matplotlib/numerix/mlab' does not exist
Eric Firing wrote: Nils, Two more commits, now at 3584, and I think I have it straightened out. I hope so. I'm going offline for 8 hours or so, so if it is not fixed now either someone else will have to do it, or it will have to wait. Eric Hi Eric, Works for me ! Thank you very much ! Cheers, Nils - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
[matplotlib-devel] Cannot access svn
svn: PROPFIND request failed on '/svnroot/matplotlib/trunk/matplotlib' svn: PROPFIND of '/svnroot/matplotlib/trunk/matplotlib': Could not resolve hostname `svn.sourceforge.net': Host not found (https://svn.sourceforge.net) Is this a temporary problem ? Nils - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] Cannot access svn
John Hunter wrote: On 7/10/07, Darren Dale [EMAIL PROTECTED] wrote: I ended up checking out the entire repository again. It seems that the working address is now matplotlib.svn.sourceforge.net/svn/matplotlib, instead of svn.sourceforge.net/svn/matplotlib. Nothing is working for me -bash-2.05b$ cd python/svn/ -bash-2.05b$ svn co http://matplotlib.svn.sourceforge.net/svn/matplotlib --username=jdh2358 --password=mypasswd svn: PROPFIND request failed on '/svn/matplotlib' svn: PROPFIND of '/svn/matplotlib': 405 Method Not Allowed (http://matplotlib.svn.sourceforge.net) -bash-2.05b$ svn co https://matplotlib.svn.sourceforge.net/svn/matplotlib --username=jdh2358 --password=mypasswd svn: PROPFIND request failed on '/svn/matplotlib' svn: PROPFIND of '/svn/matplotlib': 405 Method Not Allowed (https://matplotlib.svn.sourceforge.net) -bash-2.05b$ svn co https://matplotlib.svn.sourceforge.net/svn/matplotlib svn: PROPFIND request failed on '/svn/matplotlib' svn: PROPFIND of '/svn/matplotlib': 405 Method Not Allowed (https://matplotlib.svn.sourceforge.net) -bash-2.05b$ svn co https://svn.sourceforge.net/svnroot/matplotlib/trunk matplotlib svn: PROPFIND request failed on '/svnroot/matplotlib/trunk' svn: PROPFIND of '/svnroot/matplotlib/trunk': Could not resolve hostname `svn.sourceforge.net': Host not found (https://svn.sourceforge.net) Can you see anything wrong with what I am doing? - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel svn co https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/matplotlib works for me. Nils - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] Installation problem matplotlib svn
On Tue, 16 Jan 2007 09:38:54 +0800 Steve Chaplin [EMAIL PROTECTED] wrote: On Mon, 2007-01-15 at 10:57 -0800, [EMAIL PROTECTED] wrote: Hi, I cannot install the latest matplotlib on openSUSE10.2 python setup.py install yields OK, I've updated _image.cpp to work on 64-bit systems with new versions of Python, but you will need to test it for me. Steve Hi Steve, This is to let you know that I was able to install matplotlib via latest svn version. Thank you ! Cheers, Nils - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel