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 5246c04 commit b3e43e6Copy full SHA for b3e43e6
1 file changed
examples/user_interfaces/embedding_in_qt4_wtoolbar.py
@@ -23,7 +23,7 @@ def create_main_frame(self):
23
self.fig = Figure((5.0, 4.0), dpi=100)
24
self.canvas = FigureCanvas(self.fig)
25
self.canvas.setParent(self.main_frame)
26
- self.canvas.setFocusPolicy( Qt.ClickFocus )
+ self.canvas.setFocusPolicy( Qt.StrongFocus )
27
self.canvas.setFocus()
28
29
self.mpl_toolbar = NavigationToolbar(self.canvas, self.main_frame)
@@ -43,8 +43,8 @@ def on_draw(self):
43
self.fig.clear()
44
self.axes = self.fig.add_subplot(111)
45
#self.axes.plot(self.x, self.y, 'ro')
46
- #self.axes.imshow(self.data, interpolation='nearest')
47
- self.axes.plot([1,2,3])
+ self.axes.imshow(self.data, interpolation='nearest')
+ #self.axes.plot([1,2,3])
48
self.canvas.draw()
49
50
def on_key_press(self, event):
0 commit comments