Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b3a37a commit 8fda0f5Copy full SHA for 8fda0f5
1 file changed
examples/embedding_in_wx3.py
@@ -21,6 +21,8 @@
21
import sys, time, os, gc
22
import matplotlib
23
matplotlib.use('WXAgg')
24
+# some of this code is numarray dependent
25
+matplotlib.rcParams['numerix'] = 'numarray'
26
import matplotlib.cm as cm
27
from matplotlib.backends.backend_wxagg import Toolbar, FigureCanvasWxAgg
28
from matplotlib.figure import Figure
@@ -65,6 +67,7 @@ def init_plot_data(self):
65
67
self.im = a.imshow( z, cmap=cm.jet)#, interpolation='nearest')
66
68
69
zmax = numerix.max(numerix.max(z))-ERR_TOL
70
+
71
ymax_i, xmax_i = numerix.nonzero(
72
numerix.greater_equal(z, zmax))
73
if self.im.origin == 'upper':
0 commit comments