Commit f937738c authored by Yan's avatar Yan
Browse files

Parameters change support - pt3

* Fix broken __main__ from pt2
* printing/clipping fixed
* for broken things, please refer to pt2
parent 316e81af
......@@ -175,7 +175,6 @@ def main():
gt.zoom_factory(chromatogram, 1.15)
gt.arrow_factory(spectrum, chromatogram, ds, ms, chrom)
gt.pan_factory(spectrum, ms)
gt.zoom_factory(spectrum, 1.15, ms)
mass_selector = SpanSelector(
......@@ -23,11 +23,8 @@ def paint_image(mass_spec, spect, painttarget=None):
printplot = paintfig.add_subplot(111)
ydata = [line.get_data()[1] for line in spect.lines]
for yline in ydata:
mspect = mass_spec.copy()
mspect['y'] = yline
data = [line.get_data() for line in spect.lines]
[gt.pop_plot(*line, printplot, mass_spec) for line in data]
printplot.locator_params(nbins=xtics, axis='x')
cache_file = BytesIO()
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