Commit 5e1d2ef1 authored by 3Yan's avatar 3Yan
Browse files

DRL - doubleclick graph autoscale fixed

* purging graph completely before populating, otherwise matplotlib has autoscale issues
parent 85781a4b
......@@ -140,10 +140,9 @@ def update_drlspectrum(ds, drls, drlspectrum):
[0, 100, 255], [100, 100, 100]])
names, times, intensities = get_daughterset(ds, drls)
for i in range(len(drlspectrum.lines)):
drlspectrum.lines[0].remove()
drlspectrum.axvline(0, color="#FF000088", linestyle=":")
drlspectrum.clear()
gt.pop_plot(drlspectrum, drls['graphlabels'])
drlspectrum.axvline(0, 0, 0.9, color="#FF000088", linestyle=":")
i = 0
for row in range(drls['dt'].rowCount()):
......@@ -652,12 +651,12 @@ def main_window(parent, ds, filename, cache):
graph_canvas = FigureCanvas(dial_graph)
graph_canvas.setStyleSheet("background-color:transparent;")
graph_canvas.setAutoFillBackground(False)
graphlabels = dict(x=[0], y=[0], line=None, name="",
xlabel="time(min)",
ylabel="relative intensity")
drls['graphlabels'] = dict(x=[0], y=[0], line=None, name="",
xlabel="time(min)",
ylabel="relative intensity")
gt.pan_factory(chromplot)
gt.zoom_factory(chromplot, 1.15)
gt.pop_plot(chromplot, graphlabels)
gt.pop_plot(chromplot, drls['graphlabels'])
time_title = QtWidgets.QLabel("Time shift (min):")
drls['tshift'] = QtWidgets.QDoubleSpinBox(
......
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