Revision: 5745
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5745&view=rev
Author: jswhit
Date: 2008-07-11 08:50:28 -0700 (Fri, 11 Jul 2008)
Log Message:
-----------
check for required Basemap version.
Modified Paths:
--------------
trunk/toolkits/basemap/examples/plot_tissot.py
Modified: trunk/toolkits/basemap/examples/plot_tissot.py
===================================================================
--- trunk/toolkits/basemap/examples/plot_tissot.py 2008-07-11 15:48:04 UTC
(rev 5744)
+++ trunk/toolkits/basemap/examples/plot_tissot.py 2008-07-11 15:50:28 UTC
(rev 5745)
@@ -1,6 +1,7 @@
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.basemap import Basemap
+from mpl_toolkits.basemap import __version__ as basemap_version
from matplotlib.patches import Polygon
# Tissot's Indicatrix (http://en.wikipedia.org/wiki/Tissot's_Indicatrix).
@@ -11,6 +12,10 @@
# Tissot's indicatrix have all unit area, although their shapes and
# orientations vary with location.
+# requires Basemap version 0.99.1
+if basemap_version < '0.99.1':
+ raise SystemExit("this example requires Basemap version 0.99.1 or higher")
+
# create Basemap instances with several different projections
m1 = Basemap(llcrnrlon=-180,llcrnrlat=-80,urcrnrlon=180,urcrnrlat=80,
projection='cyl')
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins