Hi Mike,

Just use 

plt.savefig('test.png')


instead of plt.imshow(img)
Then you get the image.
Greets!
Stefan


On Thursday 17 December 2009 03:01:25 pm Walking Randomly wrote:
> Hello again
> 
> So I wondered if I could work through the matplotlib image processing
> tutorial using the SAGE notebook
> 
> http://matplotlib.sourceforge.net/users/image_tutorial.html
> 
> and evaluated this code
> 
> import matplotlib.pyplot as plt
> import matplotlib.image as mpimg
> import numpy as np
> img=mpimg.imread('/home/mike/stinkbug.png')
> plt.imshow(img)
> 
> The result was
> 
> <matplotlib.image.AxesImage object at 0x4bb3510>
> 
> I was expecting to get a picture shown.  Was I being reasonable with
> this expectation or am I missing something?
> 
> Cheers,
> Mike
> 

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to