Commit 9fced6ce authored by Yan's avatar Yan
Browse files

Mass selector does not perform indefinite zoom

parent 2b8cfd90
...@@ -57,9 +57,9 @@ def main(): ...@@ -57,9 +57,9 @@ def main():
gt.zoom_factory(spectrum, 1.15, ms) gt.zoom_factory(spectrum, 1.15, ms)
mass_selector = SpanSelector( mass_selector = SpanSelector(
spectrum, lambda x_min, x_max: gt.pick_masses( spectrum, lambda x_min, x_max: gt.pick_masses(
x_min, x_max, spectrum, ms), x_min, x_max, spectrum, ms), 'horizontal', minspan=0.01,
'horizontal', useblit=True, rectprops=dict( useblit=True, rectprops=dict(alpha=0.15, facecolor='purple'),
alpha=0.15, facecolor='purple'), button=3) button=3)
time_selector = SpanSelector( time_selector = SpanSelector(
chromatogram, lambda x_min, x_max: gt.pick_times( chromatogram, lambda x_min, x_max: gt.pick_times(
x_min, x_max, spectrum, ds, chromatogram, ms, chrom), x_min, x_max, spectrum, ds, chromatogram, ms, chrom),
......
Supports Markdown
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