Skip to content
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

Can't pan/zoom while streaming to a DynamicMap #2441

Open
linar-jether opened this issue Mar 13, 2018 · 7 comments
Open

Can't pan/zoom while streaming to a DynamicMap #2441

linar-jether opened this issue Mar 13, 2018 · 7 comments

Comments

@linar-jether
Copy link

linar-jether commented Mar 13, 2018

Sending data to a stream currently causes the view to reset.

this can be disabled through the apply_ranges plot option (as suggested by @philippjfr) although this messes with the initial range.

Using the pan/zoom tools should pause the view updates (can be useful when we want to view a larger time window and still see updates)

Edit
A hack to override this behaviour is to replace the Range1d objects in the figures with a DataRange1d object with the follow option set

from bokeh.plotting.figure import Figure

    for x in doc.select({'type': Figure}):
        x.x_range = DataRange1d(follow='end', follow_interval=60000, range_padding=0)
@jbednar
Copy link
Member

jbednar commented Mar 13, 2018

This might need to be a separate tool to enable and disable auto-ranging. In most cases with streaming data, you want the auto-ranging to stop while you investigate something, but then you'll also want to re-enable auto ranging afterwards to catch up to current values. E.g. using pan and zoom might disable the auto-range tool, but then the user could re-select it when they are done.

@linar-jether
Copy link
Author

Yes this the same behavior currently available with the DataRange1d(follow=True), after pressing the reset tool, the range continues to follow new data

@jbednar
Copy link
Member

jbednar commented Mar 14, 2018

Sounds perfect.

@philippjfr
Copy link
Member

Unfortunately not entirely, we are very deliberately not using DataRange1d because it is incompatible with the normalization system we use. I would however be in favor of a plot option that allows switching to auto-ranging, but it cannot currently be enabled by default for consistency.

@jbednar
Copy link
Member

jbednar commented Mar 14, 2018

Is this finally a third normalization option? Two never did seem like it could cover everything... :-)

@philippjfr philippjfr added this to the v1.10.5 milestone May 25, 2018
@philippjfr philippjfr modified the milestones: v1.10.5, v1.10.6 Jun 10, 2018
@jlstevens jlstevens modified the milestones: v1.10.6, v1.10.8 Jul 31, 2018
@philippjfr philippjfr modified the milestones: v1.10.8, v1.11.0 Oct 25, 2018
@philippjfr philippjfr modified the milestones: v1.11.0, v1.11.x Dec 27, 2018
@philippjfr philippjfr modified the milestones: v1.11.x, v1.12.0 Mar 22, 2019
@philippjfr philippjfr modified the milestones: v1.12.0, v1.12.x Apr 22, 2019
@philippjfr philippjfr modified the milestones: v1.12.x, v1.13.0 Jan 5, 2020
@philippjfr philippjfr modified the milestones: v1.13.0, v1.13.x Mar 3, 2020
@syamajala
Copy link

I would really like this as well.

@jensschroer
Copy link

I just ran into this issue. Would be great if this could be added.

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

No branches or pull requests

6 participants