Agg backend errors

I am having a problem saving figures with any of the Agg backends.
Below is a sample of code and the resulting output. I receive the same
type of errors with any of the Agg backends ie WxAgg, TkAgg ect. With
SVG, or GD it does save. I am running python 2.3 under windows XP
matplotlib .83.2. Can you provide some guidance as to what I may have
configured wrong with the Agg backends?

Sample code run with -dAgg
                                                                         
   #!/usr/bin/env python
   from pylab import *
                                                                         
   plot(arange(10), color='#006400')
   xlabel('this is a xlabel\n(with newlines!)')
   ylabel('this is vertical\ntest', multialignment='center')
   #ylabel('this is another!')
   text(2, 7,'this is\nyet another test',
        rotation=45,
        horizontalalignment = 'center',
        verticalalignment = 'top',
        multialignment = 'center')
   savefig('c:\multiline.jpg')
                                                                         
   Debug output
                                                                         
   loaded rc file C:\Python23\share\matplotlib\matplotlibrc
   matplotlib version 0.83.2
   verbose.level debug-annoying
   interactive is False
   platform is win32
   loaded modules: ['pylab', '__future__', 'copy_reg', 'sre_compile',
   'cm', 'locale', '_sre', '__main__', 'site', '__builtin__',
   'datetime', 'thread', 'colors', 'numerix', 'encodings', 'os.path',
   'encodings.encodings', 'matplotlib.sys', 'distutils.string',
   'dateutil', 'matplotlib.datetime', 'strop', '_random', 'tempfile',
   'errno', 'matplotlib.warnings', 'encodings.codecs', 'sre_constants',
   're', 'ntpath', 'pytz.sys', 'UserDict', 'distutils.sysconfig',
   'encodings.exceptions', 'nt', 'pytz.sets', 'math', 'stat',
   'zipimport', 'string', 'warnings', 'encodings.types', '_codecs',
   'sets', 'numerix.os', 'distutils.os', 'matplotlib',
   'encodings.cp1252', 'sys', 'pytz.tzinfo', 'pytz', 'pytz.datetime',
   'matplotlib.__future__', 'codecs', 'distutils.re',
   'matplotlib.pytz', 'types', 'numerix.sys', 'matplotlib.dateutil',
   '_locale', 'matplotlib.os', 'distutils', 'sre', 'bisect',
   'matplotlib.distutils', 'signal', 'distutils.errors', 'random',
   'linecache', 'itertools', 'time', 'exceptions', 'sre_parse',
   'pytz.bisect', 'distutils.sys', 'os', 'matplotlib.tempfile']
   numerix Numeric 23.8
   numerix Numeric 23.8
   font search path ['C:\\Python23\\share\\matplotlib']
   trying fontname C:\Python23\share\matplotlib\cmex10.ttf
   trying fontname C:\Python23\share\matplotlib\cmmi10.ttf
   trying fontname C:\Python23\share\matplotlib\cmr10.ttf
   trying fontname C:\Python23\share\matplotlib\VeraMono.ttf
   trying fontname C:\Python23\share\matplotlib\cmsy10.ttf
   trying fontname C:\Python23\share\matplotlib\VeraSeBd.ttf
   trying fontname C:\Python23\share\matplotlib\cmtt10.ttf
   trying fontname C:\Python23\share\matplotlib\Vera.ttf
   $HOME=C:\Documents and Settings\cglackin
   CONFIGDIR=C:\Documents and Settings\cglackin\.matplotlib
   loaded ttfcache file C:\Documents and
   Settings\cglackin\.matplotlib\ttffont.cache
   font search path ['C:\\Python23\\share\\matplotlib']
   trying fontname C:\Python23\share\matplotlib\cmex10.ttf
   trying fontname C:\Python23\share\matplotlib\cmmi10.ttf
   trying fontname C:\Python23\share\matplotlib\cmr10.ttf
   trying fontname C:\Python23\share\matplotlib\VeraMono.ttf
   trying fontname C:\Python23\share\matplotlib\cmsy10.ttf
   trying fontname C:\Python23\share\matplotlib\VeraSeBd.ttf
   trying fontname C:\Python23\share\matplotlib\cmtt10.ttf
   trying fontname C:\Python23\share\matplotlib\Vera.ttf
   loaded ttfcache file C:\Documents and
   Settings\cglackin\.matplotlib\ttffont.cache
   matplotlib data path C:\Python23\share\matplotlib
   backend Agg version v2.2
   backend_agg.new_figure_manager
   FigureCanvasAgg.print_figure
   FigureCanvasAgg.draw
   RendererAgg.__init__
   RendererAgg._get_agg_font
       findfont failed Lucida Grande
       findfont found Verdana, normal, normal 500, normal, 12.0
   findfont returning C:\WINDOWS\Fonts\VERDANA.TTF
   RendererAgg._get_agg_font
   RendererAgg.draw_text
   RendererAgg._get_agg_font
   Traceback (most recent call last):
   RendererAgg.points_to_pixels
     File "C:\python projects\External Files\multiline.py", line 13, in
   ?
       savefig('c:\multiline.jpg')
     File "C:\Python23\Lib\site-packages\matplotlib\pylab.py", line
   773, in savefig
       return fig.savefig(*args, **kwargs)
     File "C:\Python23\Lib\site-packages\matplotlib\figure.py", line
   636, in savefig
       self.canvas.print_figure(*args, **kwargs)
     File
   "C:\Python23\Lib\site-packages\matplotlib\backends\backend_agg.py",
   line 444, in print_figure
       self.draw()
     File
   "C:\Python23\Lib\site-packages\matplotlib\backends\backend_agg.py",
   line 381, in draw
       self.figure.draw(renderer)
     File "C:\Python23\Lib\site-packages\matplotlib\figure.py", line
   511, in draw
       for a in self.axes: a.draw(renderer)
     File "C:\Python23\Lib\site-packages\matplotlib\axes.py", line
   1387, in draw
       self.xaxis.draw(renderer)
     File "C:\Python23\Lib\site-packages\matplotlib\axis.py", line 552,
   in draw
       tick.draw(renderer)
     File "C:\Python23\Lib\site-packages\matplotlib\axis.py", line 148,
   in draw
       if self.tick1On: self.tick1line.draw(renderer)
     File "C:\Python23\Lib\site-packages\matplotlib\lines.py", line
   399, in draw
       markerFunc(renderer, gc, xt, yt)
     File "C:\Python23\Lib\site-packages\matplotlib\lines.py", line
   999, in _draw_tickup
       path.move_to(-0.5, 0)
     File "C:\Python23\Lib\site-packages\matplotlib\agg.py", line 809,
   in move_to
       def move_to(*args): return _agg.path_storage_move_to(*args)
   TypeError: argument number 1: a 'path_t *' is expected,
   'path_storagePtr(<agg.path_storagePtr; proxy of C++
   agg::path_storage instance at _208aa401_p_agg__path_storage>)' is
   received
                                                                         
CSG

···

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________

Hi, just to roll the ball, your code works fine for me under linux

--Henry

cglackin@...730... a écrit :

···

I am having a problem saving figures with any of the Agg backends.
Below is a sample of code and the resulting output. I receive the same
type of errors with any of the Agg backends ie WxAgg, TkAgg ect. With
SVG, or GD it does save. I am running python 2.3 under windows XP
matplotlib .83.2. Can you provide some guidance as to what I may have
configured wrong with the Agg backends?

Sample code run with -dAgg
                                                                        
                                                                          plot(arange(10), color='#006400') xlabel('this is a xlabel\n(with newlines!)') ylabel('this is vertical\ntest', multialignment='center') #ylabel('this is another!') text(2, 7,'this is\nyet another test', rotation=45, horizontalalignment = 'center', verticalalignment = 'top', multialignment = 'center') savefig('c:\multiline.jpg')
                                                                        
CSG

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email ______________________________________________________________________

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users