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

Commit

Permalink
Fix regression: Excluded events plotted on top of filtered events (close
Browse files Browse the repository at this point in the history
 #86)
  • Loading branch information
paulmueller committed Sep 14, 2016
1 parent 83bb8c4 commit 241e224
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG
@@ -1,3 +1,6 @@
0.6.3
- Bugfixes:
- Fix regression: Excluded events plotted on top of filtered events (#86)
0.6.2
- Add batch filter processing
- Move statistics computation to dclab (0.1.7dev12):
Expand Down
7 changes: 4 additions & 3 deletions shapeout/gui/plot_scatter.py
Expand Up @@ -143,9 +143,6 @@ def scatter_plot(measurement,
plot_kwargs["type"] = "cmap_scatter"
plot_kwargs["color_mapper"] = ca.jet

if pd.get_data("index") is not None:
scatter_plot.plot(**plot_kwargs)

# Excluded events
if (plotfilters["Scatter Plot Excluded Events"] and
mm._filter.sum() != mm.time.shape[0]):
Expand All @@ -157,6 +154,10 @@ def scatter_plot(measurement,
if pd.get_data("excl_index") is not None:
scatter_plot.plot(**plot_kwargs_excl)

# Plot colored points on top of excluded events
if pd.get_data("index") is not None:
scatter_plot.plot(**plot_kwargs)

# Set x-y limits
xlim = scatter_plot.index_mapper.range
ylim = scatter_plot.value_mapper.range
Expand Down

0 comments on commit 241e224

Please sign in to comment.