From: John H. <jdh...@ac...> - 2004-10-05 18:30:51
|
from tempfile import mktemp from urllib import urlretrieve from matplotlib.matlab import * url = 'http://matplotlib.sf.net/clara.png' fname = mktemp('.png') print 'Downloading image; this may take a minute...' urlretrieve(url, fname) figure(figsize=(8,6)) im = imread(fname) imshow(im) axis('off') title('Clara Charlotte Hunter, born 10/2/2004') show() |