-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Unable to update Arrow #7118
Comments
This is definitely a bug. I found an example for redrawing annotations on the mailing list, modified it slightly by adding an arrow:
The slider redraws span and the label, but doesn't redraw the arrow. |
Update: I found a way around it by using a separate ColumnDataSource for the arrow, see code below. I won't close the issue since I still consider not being able to update by arrow.x_end a bug. There may not be a need to fix it though since it can be modified this way.
|
Sorry this missed triage earlier, agree it is a bug |
Following diff solves the issue, although not exactly pleasant to allow for updating all 4 coordinates.
|
This example with Arrow and Slider does not update Arrow in both 1.0.4 and 1.3.4 versions. "Segment' works. |
@sam0458 The example in #7118 (comment) works for me with 1.3.4 The example updating from a source does not. Please open a new issue for the latter case (will be easier for us to track in a new issue that links back here) |
Thanks. I will open the new issue. At least not from source works. |
Hi Bryan,
My task is to plot quiver map with arrows. #7118 (comment)
<#7118 (comment)> works
for a single float but not for arrays or lists to update maps. Is there any
way in Bokeh to plot quiver map with arrows?
Thanks
…On Thu, Sep 19, 2019 at 5:45 PM Bryan Van de Ven ***@***.***> wrote:
@sam0458 <https://github.com/sam0458> The example in #7118 (comment)
<#7118 (comment)> works
for me with 1.3.4 The example updating from a source does not. Please open
a new issue for the latter case (will be easier for us to track in a new
issue that links back here)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7118?email_source=notifications&email_token=AJDA4QHJCNX4RJV2JE3AIELQKQMLZA5CNFSM4EBFJDPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7FGY4I#issuecomment-533359729>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJDA4QGKLQIF7WMBF2CSLQDQKQMLZANCNFSM4EBFJDPA>
.
|
I think you would have to stick to a version before this regression. |
Might be able to look into this if its not already. |
I did not look after the message but I will. Eventually, I combined
segment and triangle glyph as a temporary solution.
…On Tue, Oct 15, 2019 at 4:41 PM Anthony Doucouliagos < ***@***.***> wrote:
Might be able to look into this if its not already.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7118?email_source=notifications&email_token=AJDA4QCMEID2YA423RYTKATQOZIJNA5CNFSM4EBFJDPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBKRYAA#issuecomment-542448640>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJDA4QEFKZ2IJVYPMRN2THLQOZIJNANCNFSM4EBFJDPA>
.
|
Ok if you dont get around to it in the next few weeks I will take a look. |
ALL software version info (bokeh, python, notebook, OS, browser, any other relevant packages)
Bokeh 0.12.10, Tornado 4.5.2, Windows 10, Chrome
Description of expected behavior and the observed behavior
I'm working with a histogram that contains arrow annotations, and they should update when a button is pressed (the end and start levels of the arrow). For some reason, the arrows won't update.
Complete, minimal, self-contained example code that reproduces the issue
The following code is an example where the error occurs. Press 'run' button.
The following code is a modified example from the Bokeh gallery where the error doesn't occur.
By modifying code 2 into having a button, like code 1 did, the same error persists.
If you comment out the first three lines in the btn() function in code 1, the problem persists, so it's not because of ColumnDataSource being updated. By setting arrow.y_end = 0.1 outside the btn() function, the code works. So it seems that you can't update an arrow by use of a function, which hasn't been an issue for me when updating factors. Is this an issue with the Arrow component?
Stack traceback and/or browser JavaScript console output
[bokeh] setting log level to: 'info'
connection.js:192 [bokeh] Websocket connection 0 is now open
widget_box.js:109 [bokeh] WidgetBox mode is fixed, but no width specified. Using default of 300.
embed.js:263 Bokeh items were rendered successfully
Screenshots or screencasts of the bug in action
The text was updated successfully, but these errors were encountered: