Revision: 7366
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7366&view=rev
Author: jdh2358
Date: 2009-08-05 14:39:36 +0000 (Wed, 05 Aug 2009)
Log Message:
-----------
rename mpl_data to sample_data to avoid ambiguity with lib/matplotlib/mpl-data
Added Paths:
-----------
trunk/matplotlib/examples/misc/sample_data_demo.py
trunk/matplotlib/examples/misc/sample_data_test.py
Removed Paths:
-------------
trunk/matplotlib/examples/misc/mpl_data_demo.py
trunk/matplotlib/examples/misc/mpl_data_test.py
Deleted: trunk/matplotlib/examples/misc/mpl_data_demo.py
===================================================================
--- trunk/matplotlib/examples/misc/mpl_data_demo.py 2009-08-05 14:38:44 UTC
(rev 7365)
+++ trunk/matplotlib/examples/misc/mpl_data_demo.py 2009-08-05 14:39:36 UTC
(rev 7366)
@@ -1,12 +0,0 @@
-"""
-Grab mpl data from the ~/.matplotlib/sample_data cache if it exists, else
-fetch it from svn and cache it
-"""
-import matplotlib.cbook as cbook
-import matplotlib.pyplot as plt
-fname = cbook.get_sample_data('lena.png', asfileobj=False)
-
-print 'fname', fname
-im = plt.imread(fname)
-plt.imshow(im)
-plt.show()
Deleted: trunk/matplotlib/examples/misc/mpl_data_test.py
===================================================================
--- trunk/matplotlib/examples/misc/mpl_data_test.py 2009-08-05 14:38:44 UTC
(rev 7365)
+++ trunk/matplotlib/examples/misc/mpl_data_test.py 2009-08-05 14:39:36 UTC
(rev 7366)
@@ -1,13 +0,0 @@
-"""
-Demonstrate how get_sample_data works with svn revisions in the data.
-
- svn co
https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/sample_data
-
-and edit testdata.csv to add a new row. After committing the changes,
-when you rerun this script you will get the updated data (and the new
-svn version will be cached in ~/.matplotlib/sample_data)
-"""
-
-import matplotlib.cbook as cbook
-fh = cbook.get_sample_data("testdata.csv")
-print fh.read()
Copied: trunk/matplotlib/examples/misc/sample_data_demo.py (from rev 7365,
trunk/matplotlib/examples/misc/mpl_data_demo.py)
===================================================================
--- trunk/matplotlib/examples/misc/sample_data_demo.py
(rev 0)
+++ trunk/matplotlib/examples/misc/sample_data_demo.py 2009-08-05 14:39:36 UTC
(rev 7366)
@@ -0,0 +1,12 @@
+"""
+Grab mpl data from the ~/.matplotlib/sample_data cache if it exists, else
+fetch it from svn and cache it
+"""
+import matplotlib.cbook as cbook
+import matplotlib.pyplot as plt
+fname = cbook.get_sample_data('lena.png', asfileobj=False)
+
+print 'fname', fname
+im = plt.imread(fname)
+plt.imshow(im)
+plt.show()
Copied: trunk/matplotlib/examples/misc/sample_data_test.py (from rev 7365,
trunk/matplotlib/examples/misc/mpl_data_test.py)
===================================================================
--- trunk/matplotlib/examples/misc/sample_data_test.py
(rev 0)
+++ trunk/matplotlib/examples/misc/sample_data_test.py 2009-08-05 14:39:36 UTC
(rev 7366)
@@ -0,0 +1,13 @@
+"""
+Demonstrate how get_sample_data works with svn revisions in the data.
+
+ svn co
https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/sample_data
+
+and edit testdata.csv to add a new row. After committing the changes,
+when you rerun this script you will get the updated data (and the new
+svn version will be cached in ~/.matplotlib/sample_data)
+"""
+
+import matplotlib.cbook as cbook
+fh = cbook.get_sample_data("testdata.csv")
+print fh.read()
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins