Revision: 5549
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5549&view=rev
Author:   astraw
Date:     2008-06-15 13:38:00 -0700 (Sun, 15 Jun 2008)

Log Message:
-----------
fix example to run with current MPL and numpy

Modified Paths:
--------------
    trunk/matplotlib/examples/units/date_converter.py

Modified: trunk/matplotlib/examples/units/date_converter.py
===================================================================
--- trunk/matplotlib/examples/units/date_converter.py   2008-06-15 15:29:57 UTC 
(rev 5548)
+++ trunk/matplotlib/examples/units/date_converter.py   2008-06-15 20:38:00 UTC 
(rev 5549)
@@ -1,7 +1,8 @@
 import date_support # set up the date converters
 import datetime
 from matplotlib.dates import drange
-from pylab import figure, show, nx
+from pylab import figure, show
+import numpy as np
 
 
 xmin = datetime.date(2007,1,1)
@@ -12,7 +13,7 @@
 fig = figure()
 fig.subplots_adjust(bottom=0.2)
 ax = fig.add_subplot(111)
-ax.plot(xdates, nx.mlab.rand(len(xdates)), 'o')
+ax.plot(xdates, np.random.rand(len(xdates)), 'o')
 ax.set_xlim(datetime.date(2007,2,1), datetime.date(2007,3,1))
 
 fig.autofmt_xdate()


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to