You may be encountering this bug: 
http://code.astraw.com/debian_sarge_libc.html

John T Whelan wrote:
> I just installed matplotlib 0.87.5 and numpy 1.0 from source on my
> Debian "sarge" (stable release) system.  (I chose those versions
> because they're the ones currently included in the testing "etch"
> release.)  Everything I've tried has worked *except* the ylabel()
> command.  Whenever a plot containing a ylabel is rendered (on the
> screen with show() or figure(), or non-interactively with savefig()),
> python exits with the error
>
> Floating exception
>
> This does not happen if the ylabel() command is omitted, and there is
> no problem with xlabel(), so I assume the issue is rotating the text
> for the y axis label.
>
> Simple example:
>
> ==================================================
>   
>> ipython -pylab
>>     
> /usr/lib/python2.3/site-packages/numpy/ctypeslib.py:12: UserWarning: All 
> features of ctypes interface may not work with ctypes < 1.0.1
>    warnings.warn("All features of ctypes interface may not work with " \
> /usr/lib/python2.3/site-packages/IPython/Shell.py:628: GtkDeprecationWarning: 
> gtk.timeout_add is deprecated, use gobject.timeout_add instead
>    self.gtk.timeout_add(self.TIMEOUT, self.on_timer)
> Python 2.3.5 (#2, Oct 16 2006, 19:19:48) 
> Type "copyright", "credits" or "license" for more information.
>
> IPython 0.6.13 -- An enhanced Interactive Python.
> ?       -> Introduction to IPython's features.
> %magic  -> Information about IPython's 'magic' % functions.
> help    -> Python's own help system.
> object? -> Details about 'object'. ?object also works, ?? prints more.
>
>    Welcome to pylab, a matplotlib-based Python environment.
>    For more information, type 'help(pylab)'.
>
> In [1]: plot([0, 1],[0, 1]) 
> Out[1]: [<matplotlib.lines.Line2D instance at 0xb5b46f2c>]
>
> In [2]: xlabel('foo')
> Out[2]: <matplotlib.text.Text instance at 0xb5b2d4cc>
>
> In [3]: ylabel('bar')
> Floating exception
> ==================================================
>
> Anyone have experience with this and care to point me towards the
> solution to such a problem?
>                               Thanks,
>   


-------------------------------------------------------------------------
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.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to