SourceForge logo
SourceForge logo
Menu

matplotlib-checkins

From: <js...@us...> - 2008年12月31日 14:42:07
Revision: 6720
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6720&view=rev
Author: jswhit
Date: 2008年12月31日 14:41:54 +0000 (2008年12月31日)
Log Message:
-----------
fix bug in fulldisk aeqd, change garp.py example to plot whole disk
Modified Paths:
--------------
 trunk/toolkits/basemap/examples/garp.py
Modified: trunk/toolkits/basemap/examples/garp.py
===================================================================
--- trunk/toolkits/basemap/examples/garp.py	2008年12月31日 14:37:44 UTC (rev 6719)
+++ trunk/toolkits/basemap/examples/garp.py	2008年12月31日 14:41:54 UTC (rev 6720)
@@ -11,20 +11,12 @@
 # it will be to reach that destination.
 # The specified point shows up as a red dot in the center of the map.
 
-# This example shows how to use the width and height keywords
-# to specify the map projection region (instead of specifying
-# the lat/lon of the upper right and lower left corners).
-
 # user enters the lon/lat of the point, and it's name
 lon_0 = float(raw_input('input reference lon (degrees):'))
 lat_0 = float(raw_input('input reference lat (degrees):'))
 location = raw_input('name of location:')
 
-# use these values to setup Basemap instance.
-width = 28000000
-m = Basemap(width=width,height=width,\
- resolution='c',projection='aeqd',\
- lat_0=lat_0,lon_0=lon_0)
+m = Basemap(resolution='c',projection='aeqd',lat_0=lat_0,lon_0=lon_0)
 # fill background.
 m.drawmapboundary(fill_color='aqua')
 # draw coasts and fill continents.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
From: <js...@us...> - 2008年12月31日 19:00:24
Revision: 6725
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6725&view=rev
Author: jswhit
Date: 2008年12月31日 19:00:19 +0000 (2008年12月31日)
Log Message:
-----------
make graticule gray show the lines show up over continents.
Modified Paths:
--------------
 trunk/toolkits/basemap/examples/garp.py
Modified: trunk/toolkits/basemap/examples/garp.py
===================================================================
--- trunk/toolkits/basemap/examples/garp.py	2008年12月31日 18:49:07 UTC (rev 6724)
+++ trunk/toolkits/basemap/examples/garp.py	2008年12月31日 19:00:19 UTC (rev 6725)
@@ -33,8 +33,8 @@
 # draw lsmask instead of drawing continents (slower, but more robust).
 
 m.drawlsmask(land_color='black',ocean_color='white',lakes=True)
-m.drawparallels(np.arange(-80,81,20))
-m.drawmeridians(np.arange(-180,180,20))
+m.drawparallels(np.arange(-80,81,20),color='0.7')
+m.drawmeridians(np.arange(-180,180,20),color='0.7')
 m.drawmapboundary()
 
 # blue marble background (pretty, but slow).
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
From: <js...@us...> - 2008年12月31日 19:01:44
Revision: 6726
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6726&view=rev
Author: jswhit
Date: 2008年12月31日 19:01:41 +0000 (2008年12月31日)
Log Message:
-----------
add comment
Modified Paths:
--------------
 trunk/toolkits/basemap/examples/garp.py
Modified: trunk/toolkits/basemap/examples/garp.py
===================================================================
--- trunk/toolkits/basemap/examples/garp.py	2008年12月31日 19:00:19 UTC (rev 6725)
+++ trunk/toolkits/basemap/examples/garp.py	2008年12月31日 19:01:41 UTC (rev 6726)
@@ -16,6 +16,8 @@
 lat_0 = float(raw_input('input reference lat (degrees):'))
 location = raw_input('name of location:')
 
+# no width/height or lat/lon corners specified, so whole world
+# is plotted in a circle.
 m = Basemap(resolution='c',projection='aeqd',lat_0=lat_0,lon_0=lon_0)
 
 # draw coastlines and fill continents.
@@ -27,8 +29,8 @@
 #m.drawmapboundary(fill_color='white')
 #m.drawcoastlines(linewidth=0.5)
 #m.fillcontinents(color='black',lake_color='white')
-#m.drawparallels(np.arange(-80,81,20))
-#m.drawmeridians(np.arange(-180,180,20))
+#m.drawparallels(np.arange(-80,81,20),color='0.7')
+#m.drawmeridians(np.arange(-180,180,20),color='0.7')
 
 # draw lsmask instead of drawing continents (slower, but more robust).
 
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
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 によって変換されたページ (->オリジナル) /