Revision: 8863
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8863&view=rev
Author: jswhit
Date: 2010-12-29 21:54:10 +0000 (Wed, 29 Dec 2010)
Log Message:
-----------
avoid warning messages when labelling meridians
Modified Paths:
--------------
trunk/toolkits/basemap/examples/plot_tissot.py
Modified: trunk/toolkits/basemap/examples/plot_tissot.py
===================================================================
--- trunk/toolkits/basemap/examples/plot_tissot.py 2010-12-29 21:43:26 UTC
(rev 8862)
+++ trunk/toolkits/basemap/examples/plot_tissot.py 2010-12-29 21:54:10 UTC
(rev 8863)
@@ -37,8 +37,16 @@
for meridian in range(-165,166,30):
poly =
m.tissot(meridian,parallel,6,100,facecolor='green',zorder=10,alpha=0.5)
# draw meridians and parallels.
- m.drawparallels(np.arange(-60,61,30),labels=[1,0,0,0])
- m.drawmeridians(np.arange(-180,180,60),labels=[0,0,0,1])
+ if m.projection != 'ortho':
+ labels = [1,0,0,0]
+ else:
+ labels = [0,0,0,0]
+ m.drawparallels(np.arange(-60,61,30),labels=labels)
+ if m.projection not in ['moll','hammer','mbtfpq','ortho']:
+ labels = [0,0,0,1]
+ else:
+ labels = [0,0,0,0]
+ m.drawmeridians(np.arange(-180,180,60),labels=labels)
# draw coastlines, fill continents, plot title.
m.drawcoastlines()
m.drawmapboundary(fill_color='aqua')
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins