make more interactive friendly (code stolen from pylab.py)
make more interactive friendly (code stolen from pylab.py)

svn path=/trunk/toolkits/basemap/; revision=1499

matplotlib/basemap,guziy/basemap,matplotlib/basemap,guziy/basemap