Skip to content

Conversation

chrishalcrow
Copy link
Member

Changes the way the BaseScatterView updates its range. Desktop behaviour now matches the web behaviour.

Two changes:

  1. The scatter plot now uses autoRange,
  2. then the histogram updates its y-range to match the scatter plot. This should fix Spikeamplitude panel miss-alignment #171

Previously, both plots used min(all_data) max(all_data) for the y-range. Hence a single large-amplitude spike could make the plot go very gross.

@@ -111,13 +111,11 @@ def initialize_plot(self):
self.viewBox = ViewBoxHandlingLasso()
self.viewBox.lasso_drawing.connect(self.on_lasso_drawing)
self.viewBox.lasso_finished.connect(self.on_lasso_finished)
self.viewBox.disableAutoRange()
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alejoe91 I think this was added in the lasso PR. But I don't think it's needed - my lassoing still works! Can you check?

@samuelgarcia
Copy link
Member

Does it fix the issue or not totally ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Spikeamplitude panel miss-alignment
2 participants