|
From: <js...@us...> - 2010-06-10 18:43:41
|
Revision: 8410
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8410&view=rev
Author: jswhit
Date: 2010-06-10 18:43:34 +0000 (Thu, 10 Jun 2010)
Log Message:
-----------
added ploticos.py example for plotting triangular grids.
Modified Paths:
--------------
trunk/toolkits/basemap/Changelog
trunk/toolkits/basemap/MANIFEST.in
trunk/toolkits/basemap/examples/README
trunk/toolkits/basemap/examples/ploticos.py
Modified: trunk/toolkits/basemap/Changelog
===================================================================
--- trunk/toolkits/basemap/Changelog 2010-06-10 18:25:19 UTC (rev 8409)
+++ trunk/toolkits/basemap/Changelog 2010-06-10 18:43:34 UTC (rev 8410)
@@ -4,12 +4,12 @@
* add support for plotting on unstructured grids using
keyword 'tri' in pcolor,contour,contourf methods (which
then forward to tripcolor, tricontour, tricontourf axes
- methods).
+ methods). examples/ploticos.py added.
* let continents that fill the whole map be filled.
* added option for cubic spline interpolation in interp function
(order=3) using scipy.ndimage.
* added "near-sided perspective" projection for a satellite
- view at an arbitrary altitude.
+ view at an arbitrary altitude.
* patch from Stephane Raynaud to pass format string to
drawmapscale, and allow units='m'.
* updated proj4 source to version 4.7.0, pyproj to 1.8.6.
Modified: trunk/toolkits/basemap/MANIFEST.in
===================================================================
--- trunk/toolkits/basemap/MANIFEST.in 2010-06-10 18:25:19 UTC (rev 8409)
+++ trunk/toolkits/basemap/MANIFEST.in 2010-06-10 18:43:34 UTC (rev 8410)
@@ -20,6 +20,7 @@
include examples/simpletest_oo.py
include examples/randompoints.py
include examples/daynight.py
+include examples/ploticos.py
include examples/test.py
include examples/us_25m.dem
include examples/testgdal.py
Modified: trunk/toolkits/basemap/examples/README
===================================================================
--- trunk/toolkits/basemap/examples/README 2010-06-10 18:25:19 UTC (rev 8409)
+++ trunk/toolkits/basemap/examples/README 2010-06-10 18:43:34 UTC (rev 8410)
@@ -136,3 +136,5 @@
(requires scipy).
daynight.py shows how to shade the regions of a map where the sun has set.
+
+ploticos.py demonstrates plotting on unstructured grids.
Modified: trunk/toolkits/basemap/examples/ploticos.py
===================================================================
--- trunk/toolkits/basemap/examples/ploticos.py 2010-06-10 18:25:19 UTC (rev 8409)
+++ trunk/toolkits/basemap/examples/ploticos.py 2010-06-10 18:43:34 UTC (rev 8410)
@@ -16,4 +16,5 @@
map.pcolor(x,y,z,tri=True,shading='faceted',vmin=0,vmax=3000)
#map.contourf(x,y,z,np.arange(0,3000,150),tri=True)
#map.contour(x,y,z,np.arange(0,3000,150),tri=True)
+plt.title('pcolor plot on a global icosahedral mesh')
plt.show()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|