SourceForge logo
SourceForge logo
Menu

SF.net SVN: matplotlib:[8971] trunk/toolkits/basemap/examples/lic_demo.py

From: <js...@us...> - 2011年02月11日 20:29:43
Revision: 8971
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8971&view=rev
Author: jswhit
Date: 2011年02月11日 20:29:37 +0000 (2011年2月11日)
Log Message:
-----------
remove un-needed imports
Modified Paths:
--------------
 trunk/toolkits/basemap/examples/lic_demo.py
Modified: trunk/toolkits/basemap/examples/lic_demo.py
===================================================================
--- trunk/toolkits/basemap/examples/lic_demo.py	2011年02月11日 19:30:12 UTC (rev 8970)
+++ trunk/toolkits/basemap/examples/lic_demo.py	2011年02月11日 20:29:37 UTC (rev 8971)
@@ -5,7 +5,7 @@
 from netCDF4 import Dataset as NetCDFFile
 except ImportError:
 from mpl_toolkits.basemap import NetCDFFile
-from mpl_toolkits.basemap import Basemap, cm, shiftgrid
+from mpl_toolkits.basemap import Basemap
 import numpy as np
 import matplotlib.pyplot as plt
 try:
@@ -26,10 +26,9 @@
 
 fig = plt.figure(figsize=(8,8))
 m = Basemap(projection='stere',lat_0=lat0,lon_0=lon0,width=1.e6,height=1.e6,resolution='i')
-nxv = 501; nyv = 501
+nxv = 301; nyv = 301; kernellen=41
 udat, vdat, xv, yv = m.transform_vector(u,v,lons1,lats1,nxv,nyv,returnxy=True)
 texture = np.random.rand(udat.shape[0],udat.shape[1]).astype(np.float32)
-kernellen=51
 kernel = np.sin(np.arange(kernellen)*np.pi/kernellen).astype(np.float32)
 image = lic_internal.line_integral_convolution(udat.astype(np.float32),\
 vdat.astype(np.float32), texture, kernel)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

View entire thread

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /