Skip to content
This repository has been archived by the owner on Nov 5, 2020. It is now read-only.

Commit

Permalink
fix: Hide unused fluorescence trace line plots
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Jul 15, 2019
1 parent 7cfd906 commit f6ae507
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
0.9.5
- fix: Allow to open measurement files that do not contain the features
"area_um" or "deform" (#245)
- fix: Hide unused fluorescence trace line plots
- enh: Display session name in window title
0.9.4
- fix: Wrong image/trace data shown for a selected event in the scatter
Expand Down
5 changes: 4 additions & 1 deletion shapeout/gui/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ def __init__(self, parent, frame):
color = "orange"
elif trid == "fl3_median":
color = "red"
self.trace_plot.plot(("x", trid), type="line", color=color)
self.trace_plot.plot(("x", trid), type="line", color=color,
name=trid)

# convert wx color to something chaco understands
bgcolor = list(np.array(self.GetBackgroundColour()) / 255)
Expand Down Expand Up @@ -254,6 +255,7 @@ def ShowEvent(self, mm_id, evt_id):
# Plot traces
if "trace" in mm:
self.plot_window.control.Show(True)
self.trace_plot.showplot(*dclab.definitions.FLUOR_TRACES)
empty_traces = []
# Default shape needed for zero-data
# (will be overridden by this loop if there
Expand All @@ -272,6 +274,7 @@ def ShowEvent(self, mm_id, evt_id):
self.trace_data.set_data("x", np.arange(dshape[0]))
# Set other trace data to zero if event does not have it
zerodata = np.zeros(dshape[0])
self.trace_plot.hideplot(*empty_traces)
for etr in empty_traces:
self.trace_data.set_data(etr, zerodata)

Expand Down

0 comments on commit f6ae507

Please sign in to comment.