Commit f6613b1c authored by Yan's avatar Yan
Browse files

Legend show/hide also in copy of the MS spectra

parent 87eac141
...@@ -14,7 +14,7 @@ from . import zcetools_help ...@@ -14,7 +14,7 @@ from . import zcetools_help
from . import reactivitytools from . import reactivitytools
__version__ = "0.0.55" __version__ = "0.0.56"
__all__ = ['config', 'datatools', 'docks', 'drltools', 'datasets', __all__ = ['config', 'datatools', 'docks', 'drltools', 'datasets',
......
...@@ -209,7 +209,8 @@ def paint_override(self, augCanvas): ...@@ -209,7 +209,8 @@ def paint_override(self, augCanvas):
self.plot.set_ylim(augCanvas.spectplot.get_ylim()) self.plot.set_ylim(augCanvas.spectplot.get_ylim())
data = [line.get_data() for line in augCanvas.spectplot.lines] data = [line.get_data() for line in augCanvas.spectplot.lines]
texts = copy.copy(augCanvas.ms) texts = copy.copy(augCanvas.ms)
if augCanvas.ds and augCanvas.ds.headers: if augCanvas.ds and augCanvas.ds.headers and\
cf.settings().value("view/legend", type=bool):
legend = augCanvas.spectplot.get_legend().get_texts() legend = augCanvas.spectplot.get_legend().get_texts()
[gt.pop_plot(*line, self.plot, texts, i, legend[i].get_text(), [gt.pop_plot(*line, self.plot, texts, i, legend[i].get_text(),
not (cf.settings().value( not (cf.settings().value(
......
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