[Python-modules-team] Bug#612529: Bug#612529: python-matplotlib: Cairo update breaks matplotlib.image imgshow

Yannick Roehlly yannick.roehlly at free.fr
Wed Feb 9 20:52:32 UTC 2011


Le Wednesday 09 February 2011 00:14:52 Sandro Tosi, vous avez écrit :
> > For instance, launch ipython and execute this commands:
> > 
> >  import matplotlib.pyplot as plt
> >  import matplotlib.image as mpimg
> >  img=mpimg.imread('/usr/share/gdm/themes/debian-greeter/debian.png')
> >  imgplot=plt.imshow(img)
> 
> do you have any backtrace and/or segfault stacktrace to attach here?

Hi Sandro,

Trying to get a backtrace, I discovered that it is not a problem of matplotlib 
but a problem of ipython. For instance, running this script works:

#!/usr/bin/python
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
img=mpimg.imread('/usr/share/gdm/themes/debian-greeter/debian.png')
imgplot=plt.imshow(img)
plt.show()

So it seems to be the "autoshow" feature of ipython that fails and this bug 
can be reassigned to it.

Do you know how to backtrace a ipython instance?

Regards,

Yannick

-- 
Hildebrant's Principle:
	If you don't know where you are going, any road will get you there.






More information about the Python-modules-team mailing list