Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nam
ProxPython
Commits
98cad1a1
Commit
98cad1a1
authored
Apr 21, 2020
by
Matthijs
Browse files
cleanup
parent
85b0ec8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
proxtoolbox/Problems/OrbitalTomog/Graphics/stack_viewer.py
View file @
98cad1a1
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment