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

Skip to content

Commit a9f3451

Browse files
Small bug fix in image_slices_viewer
1 parent c4de984 commit a9f3451

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/event_handling/image_slices_viewer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def onscroll(self, event):
3232

3333
def update(self):
3434
self.im.set_data(self.X[:, :, self.ind])
35-
ax.set_ylabel('slice %s' % self.ind)
35+
self.ax.set_ylabel('slice %s' % self.ind)
3636
self.im.axes.figure.canvas.draw()
3737

3838

0 commit comments

Comments
 (0)