-
-
Notifications
You must be signed in to change notification settings - Fork 404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apply autorange on data change events #5609
Conversation
Codecov Report
@@ Coverage Diff @@
## main #5609 +/- ##
==========================================
- Coverage 88.29% 88.27% -0.03%
==========================================
Files 302 302
Lines 62460 62495 +35
==========================================
+ Hits 55152 55168 +16
- Misses 7308 7327 +19
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
That doesn't seem right at all. inverting should be about how that particular plot is displayed, not any other plot... |
Linked axes are shared axes, so there's no way to avoid this. |
I'd say that there's no current way. :-) I'd consider this a bug, since I think the intent of the user is clear here: share the range extents, don't share the orientation. Addressing it seems very difficult, so maybe there can be a warning if axes have different values for inversion, saying that |
I think a warning for now and an issue to record the eventual desired behavior is the way forward for now... |
@philippjfr I've finished off the tasks mentioned in your TODO list - the tags suggestion works great! Ready for review/merge once the test go green. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Happy to see this merged. Since this is my PR I can't approve, so feel free to approve yourself and merge.
I'll add a line to the user guide about auto ranging applying after data updates and then I'll merge. |
I'll go ahead and merge. |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
CustomJS
callback usingsetTimeout
because theColumnDataSource.data
callback fires before the glyphs (and more importantly their indexes) are updated.cb_obj
in the callback which allows us to reuse the callback between both data and range updaates._js_on_data_callbacks
instance variable which then gets applied to all sources attached to aGlyphRenderer
ToDo
Bokeh.index
view.child_views
lookup to avoid errors in layouts.tags
property to mark them)