> Can you post a complete, free-standing example script which replicates
> the problem

import matplotlib.pyplot as plt
f=plt.figure()
ax=f.add_subplot(111)
ax.plot(range(10))
ax.text(-10, 5, 'this one is ok')
ax.text(-1202255993.82, 5, 'this one fails')
plt.show()

> and also the output of the script run with --verbose-debug?
See attached.

Darwin Kernel Version 8.11.1: Wed Oct 10 18:23:28 PDT 2007;
root:xnu-792.25.20~1/RELEASE_I386 i386 i386 (Mac OS X 10.4.11)

I'm running svn r6360 (with my draw_wrapper patch to handle per-artist
rasterizing)
$HOME=/Users/ebruning
CONFIGDIR=/Users/ebruning/.matplotlib
matplotlib data path 
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/mpl-data
loaded rc file /Users/ebruning/.matplotlib/matplotlibrc
matplotlib version 0.98.3
verbose.level debug
interactive is False
units is False
platform is darwin
loaded modules: ['xml.sax.urlparse', 'distutils', 'matplotlib.errno', 
'matplotlib.matplotlib', 'numpy.core.defchararray', 'matplotlib.tempfile', 
'distutils.sysconfig', 'ctypes._endian', 'encodings.encodings', 
'matplotlib.colors', 'numpy.core.numerictypes', 'numpy.testing.sys', 
'numpy.core.info', 'xml', 'numpy.fft.types', 'numpy.ma.operator', 
'numpy.ma.cPickle', 'struct', 'numpy.random.info', 'tempfile', 
'xml.sax.urllib', 'numpy.linalg', 'matplotlib.threading', 
'numpy.testing.operator', 'imp', 'numpy.testing', 'collections', 
'numpy.core.umath', '_struct', 'numpy.lib.numpy', 'numpy.core.scalarmath', 
'zipimport', 'string', 'numpy.testing.os', 'matplotlib.locale', 
'numpy.lib.arraysetops', 'numpy.testing.unittest', 'numpy.lib.math', 
'matplotlib.__future__', 'numpy.testing.re', 'itertools', 'numpy.version', 
'numpy.lib.re', 'distutils.re', 'ctypes.os', 'numpy.core.os', 
'numpy.lib.type_check', 'signal', 'numpy.lib.types', 'numpy.lib._datasource', 
'random', 'numpy.ma.extras', 'numpy.fft.fftpack_lite', 'matplotlib.cbook', 
'ctypes.ctypes', 'xml.sax.xmlreader', 'numpy.__builtin__', 
'numpy.lib.itertools', 'cStringIO', 'numpy.ma.core', 'numpy.numpy', 
'matplotlib.StringIO', 'locale', 'numpy.add_newdocs', 'numpy.lib.getlimits', 
'ctypes.gestalt', 'xml.sax.saxutils', 'numpy.testing.types', 'numpy.lib.sys', 
'encodings', 'numpy.ma.itertools', 'numpy.lib.io', 'numpy.imp', 'threading', 
'numpy.testing.decorators', 'matplotlib.warnings', 'matplotlib.string', 
'urllib', 'matplotlib.sys', 're', 'numpy.lib._compiled_base', 
'numpy.random.mtrand', 'math', 'numpy.fft.helper', 'fcntl', 
'numpy.ma.warnings', 'matplotlib.numpy', 'UserDict', 'numpy.lib.function_base', 
'distutils.os', 'matplotlib', 'numpy.fft.numpy', 'numpy.lib.ufunclike', 
'numpy.lib.info', 'ctypes', 'numpy.lib.warnings', 'ctypes.struct', 'codecs', 
'numpy.core._sort', 'numpy.os', '_locale', 'matplotlib.sre_constants', 
'socket', 'thread', 'StringIO', 'numpy.core.memmap', 'traceback', 
'numpy.testing.warnings', 'weakref', 'numpy.core._internal', 
'numpy.fft.fftpack', 'numpy.testing.imp', 'numpy.linalg.lapack_lite', 
'distutils.sys', 'os', 'sre_parse', 'numpy.lib.shutil', '__future__', 
'matplotlib.copy', 'xml.sax.types', 'matplotlib.traceback', '_sre', 'unittest', 
'numpy.core.sys', 'numpy.random', 'numpy.linalg.numpy', '__builtin__', 
'numpy.lib.twodim_base', 'matplotlib.re', 'numpy.core.cPickle', 'operator', 
'numpy.testing.parametric', 'numpy.core.arrayprint', 'distutils.string', 
'numpy.lib.arrayterator', 'ctypes._ctypes', 'ctypes.sys', 
'matplotlib.datetime', 'posixpath', 'numpy.lib.financial', 
'numpy.core.multiarray', 'errno', '_socket', 'binascii', 'sre_constants', 
'datetime', 'numpy.ma', 'xml.sax.handler', 'types', '_ctypes', 
'numpy.lib.stride_tricks', 'numpy.core.numpy', 'numpy', 'matplotlib.types', 
'numpy.core.defmatrix', 'xml.sax.os', 'cPickle', 'matplotlib.xml', '_codecs', 
'numpy.lib.operator', 'numpy.__config__', 'matplotlib.pyparsing', 'gestalt', 
'numpy.ma.numpy', 'copy', 'numpy.core.re', 'matplotlib.os', '_types', 
'numpy.core.fromnumeric', 'numpy.ctypeslib', 'atexit', 'numpy.lib.scimath', 
'numpy.fft', 'numpy.lib', 'numpy.random.numpy', 'posix', 'encodings.aliases', 
'matplotlib.fontconfig_pattern', 'exceptions', 'xml.sax._exceptions', 
'numpy.core.cStringIO', 'numpy.core.ctypes', 'distutils.distutils', 'copy_reg', 
'sre_compile', 'xml.sax', '_random', 'numpy.lib.__future__', 'site', 
'numpy.lib.polynomial', 'numpy._import_tools', 'numpy.core.copy_reg', 
'__main__', 'numpy.fft.info', 'numpy.core.records', 'shutil', 
'numpy.lib.cPickle', 'numpy.sys', 'matplotlib.weakref', 'numpy.core._dotblas', 
'numpy.testing.traceback', 'strop', 'numpy.testing.numpytest', 
'numpy.core.numeric', 'numpy.linalg.info', 'encodings.codecs', 
'numpy.core.__svn_version__', 'numpy.ctypes', 'numpy.core', 
'matplotlib.rcsetup', 'matplotlib.time', 'xml.sax.codecs', 'stat', '_ssl', 
'numpy.lib.utils', 'numpy.lib.index_tricks', 'warnings', 'encodings.types', 
'encodings.ascii', 'numpy.lib.shape_base', 'numpy.core.types', 'sys', 
'numpy.core.warnings', 'numpy.core.__builtin__', 'xml.sax.sys', 
'numpy.lib.format', 'numpy.lib.os', 'numpy.testing.nosetester', 'os.path', 
'matplotlib.distutils', '_weakref', 'distutils.errors', 'urlparse', 
'linecache', 'matplotlib.shutil', 'numpy.lib.cStringIO', 'time', 
'numpy.lib.machar', 'numpy.testing.numpy', 'numpy.linalg.linalg', 
'numpy.testing.utils']
Using fontManager instance from /Users/ebruning/.matplotlib/fontList.cache
backend WXAgg version 2.8.7.1
findfont: Matching 
:family=sans-serif:style=normal:variant=normal:weight=normal:stretch=normal:size=medium
 to Bitstream Vera Sans 
(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/mpl-data/fonts/ttf/Vera.ttf)
 with score of 1.000000
findfont: Matching 
:family=sans-serif:style=normal:variant=normal:weight=normal:stretch=normal:size=9.0
 to Bitstream Vera Sans 
(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/mpl-data/fonts/ttf/Vera.ttf)
 with score of 1.000000
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/backend_wx.py",
 line 1121, in _onPaint
    self.draw(drawDC=drawDC)
  File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/backend_wxagg.py",
 line 60, in draw
    FigureCanvasAgg.draw(self)
  File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/backend_agg.py",
 line 283, in draw
    self.figure.draw(self.renderer)
  File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/artist.py",
 line 44, in draw_wrapper
    draw(artist, renderer)
  File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/figure.py",
 line 769, in draw
    for a in self.axes: a.draw(renderer)
  File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/artist.py",
 line 44, in draw_wrapper
    draw(artist, renderer)
  File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/axes.py",
 line 1589, in draw
    a.draw(renderer)
  File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/text.py",
 line 487, in draw
    for line, wh, x, y in info:
TypeError: CXX : Error creating object of type N2Py3IntE
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/backend_wx.py",
 line 1121, in _onPaint
    self.draw(drawDC=drawDC)
  File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/backend_wxagg.py",
 line 60, in draw
    FigureCanvasAgg.draw(self)
  File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/backend_agg.py",
 line 283, in draw
    self.figure.draw(self.renderer)
  File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/artist.py",
 line 44, in draw_wrapper
    draw(artist, renderer)
  File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/figure.py",
 line 769, in draw
    for a in self.axes: a.draw(renderer)
  File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/artist.py",
 line 44, in draw_wrapper
    draw(artist, renderer)
  File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/axes.py",
 line 1589, in draw
    a.draw(renderer)
  File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/text.py",
 line 487, in draw
    for line, wh, x, y in info:
TypeError: CXX : Error creating object of type N2Py3IntE
CGContextRestoreGState: invalid context
-------------------------------------------------------------------------
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=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to