Commit 98cad1a1 authored by Matthijs's avatar Matthijs
Browse files

cleanup

parent 85b0ec8f
......@@ -127,7 +127,7 @@ class XYZStackViewer:
self.ax3slider.on_changed(self.update_3)
self.fig.show()
# self.fig.canvas.mpl_connect('key_press_event', self.process_key)
def update_1(self, n):
"""Update subfigure 1 on change of the slider """
......@@ -147,20 +147,3 @@ class XYZStackViewer:
self.ax[2].images[0].set_array(self.cast_fn(self.volume[:, :, int(n)]))
self.fig.canvas.draw_idle()
# def process_key(self, event):
# """Look for special events captured by mpl_connect, send to correct function """
# fig = event.canvas.figure
# ax = fig.axes[0]
# if event.key == 'j':
# self.previous_slice(ax)
# elif event.key == 'k':
# self.next_slice(ax)
# fig.canvas.draw()
#
# def previous_slice(self, ax):
# """Go to the previous slice on all plots."""
# # do stuff: set_array for all, set self.indices, set_val for sliders
#
# def next_slice(self, ax):
# """Go to the next slice."""
# # do something
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment