Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8fda0f5

Browse files
committed
made embedding_in_wx3 numarray required
svn path=/trunk/matplotlib/; revision=484
1 parent 9b3a37a commit 8fda0f5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

examples/embedding_in_wx3.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
import sys, time, os, gc
2222
import matplotlib
2323
matplotlib.use('WXAgg')
24+
# some of this code is numarray dependent
25+
matplotlib.rcParams['numerix'] = 'numarray'
2426
import matplotlib.cm as cm
2527
from matplotlib.backends.backend_wxagg import Toolbar, FigureCanvasWxAgg
2628
from matplotlib.figure import Figure
@@ -65,6 +67,7 @@ def init_plot_data(self):
6567
self.im = a.imshow( z, cmap=cm.jet)#, interpolation='nearest')
6668

6769
zmax = numerix.max(numerix.max(z))-ERR_TOL
70+
6871
ymax_i, xmax_i = numerix.nonzero(
6972
numerix.greater_equal(z, zmax))
7073
if self.im.origin == 'upper':

0 commit comments

Comments
 (0)