Skip to content

Commit 20e45e5

Browse files
committed
Numpify cbook.py
svn path=/trunk/matplotlib/; revision=3415
1 parent 1150535 commit 20e45e5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/cbook.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from __future__ import generators
66
import re, os, errno, sys, StringIO, traceback
77
import time, datetime
8-
import matplotlib.numerix as nx
8+
import numpy as npy
99

1010
try: set
1111
except NameError:
@@ -790,7 +790,7 @@ def report_memory(i=0): # argument may go away
790790
class MemoryMonitor:
791791
def __init__(self, nmax=20000):
792792
self._nmax = nmax
793-
self._mem = nx.zeros((self._nmax,), nx.Int32)
793+
self._mem = npy.zeros((self._nmax,), npy.int32)
794794
self.clear()
795795

796796
def clear(self):
@@ -826,7 +826,7 @@ def report(self, segments=4):
826826
print "Warning: array size was too small for the number of calls."
827827

828828
def xy(self, i0=0, isub=1):
829-
x = nx.arange(i0, self._n, isub)
829+
x = npy.arange(i0, self._n, isub)
830830
return x, self._mem[i0:self._n:isub]
831831

832832
def plot(self, i0=0, isub=1):

0 commit comments

Comments
 (0)