Revision: 7385
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7385&view=rev
Author:   jdh2358
Date:     2009-08-05 16:30:55 +0000 (Wed, 05 Aug 2009)

Log Message:
-----------
fixed a couple of missing cbook imports in sample_data examples

Modified Paths:
--------------
    trunk/matplotlib/examples/pylab_examples/image_demo3.py
    trunk/matplotlib/examples/pylab_examples/logo.py

Modified: trunk/matplotlib/examples/pylab_examples/image_demo3.py
===================================================================
--- trunk/matplotlib/examples/pylab_examples/image_demo3.py     2009-08-05 
16:24:03 UTC (rev 7384)
+++ trunk/matplotlib/examples/pylab_examples/image_demo3.py     2009-08-05 
16:30:55 UTC (rev 7385)
@@ -5,8 +5,10 @@
 except ImportError, exc:
     raise SystemExit("PIL must be installed to run this example")
 
+import matplotlib.cbook as cbook
+
 datafile = cbook.get_sample_data('lena.jpg')
-lena = cbook.Image.open(datafile)
+lena = Image.open(datafile)
 dpi = rcParams['figure.dpi']
 figsize = lena.size[0]/dpi, lena.size[1]/dpi
 

Modified: trunk/matplotlib/examples/pylab_examples/logo.py
===================================================================
--- trunk/matplotlib/examples/pylab_examples/logo.py    2009-08-05 16:24:03 UTC 
(rev 7384)
+++ trunk/matplotlib/examples/pylab_examples/logo.py    2009-08-05 16:30:55 UTC 
(rev 7385)
@@ -1,8 +1,8 @@
 #!/usr/bin/env python
 # This file generates the matplotlib web page logo
 from pylab import *
+import matplotlib.cbook as cbook
 
-
 # convert data to mV
 datafile = cbook.get_sample_data('membrane.dat', asfileobj=False)
 print 'loading', datafile


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

Reply via email to