From: <js...@us...> - 2007-11-20 04:09:02
|
Revision: 4385 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4385&view=rev Author: jswhit Date: 2007-11-19 20:08:52 -0800 (Mon, 19 Nov 2007) Log Message: ----------- change outerproduct to outer Modified Paths: -------------- trunk/toolkits/basemap-testing/examples/show_colormaps.py Modified: trunk/toolkits/basemap-testing/examples/show_colormaps.py =================================================================== --- trunk/toolkits/basemap-testing/examples/show_colormaps.py 2007-11-20 02:37:12 UTC (rev 4384) +++ trunk/toolkits/basemap-testing/examples/show_colormaps.py 2007-11-20 04:08:52 UTC (rev 4385) @@ -1,16 +1,16 @@ -from pylab import * +import numpy, pylab from matplotlib.toolkits.basemap import cm -a=outerproduct(arange(0,1,0.01),ones(10)) -figure(figsize=(10,7)) -subplots_adjust(top=0.8,bottom=0.05,left=0.01,right=0.99) +a=numpy.outer(numpy.arange(0,1,0.01),numpy.ones(10)) +pylab.figure(figsize=(10,7)) +pylab.subplots_adjust(top=0.8,bottom=0.05,left=0.01,right=0.99) maps=[m for m in cm.datad.keys() if not m.endswith("_r")] maps.sort() l=len(maps)+1 i=1 for m in maps: - subplot(1,l,i) - axis("off") - imshow(a,aspect='auto',cmap=cm.__dict__[m],origin="lower") - title(m,rotation=90,fontsize=10) + pylab.subplot(1,l,i) + pylab.axis("off") + pylab.imshow(a,aspect='auto',cmap=cm.__dict__[m],origin="lower") + pylab.title(m,rotation=90,fontsize=10) i=i+1 -show() +pylab.show() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |