re-jitter on tap is unexpected
See original GitHub issueThis may be intended behavior. But if so, it would be good to provide documentation of a workaround because it surprised me, and I would think others too
This only a slightly tweaked version of the categorical jitter example in gallery, that adds a tap tool.
You can also see it here: http://nbviewer.jupyter.org/github/birdsarah/bokeh-miscellany/blob/master/jitter on tap.ipynb
from bokeh.io import show, output_notebook
from bokeh.models import ColumnDataSource
from bokeh.plotting import figure
from bokeh.sampledata.commits import data
from bokeh.transform import jitter
output_notebook()
DAYS = ['Sun', 'Sat', 'Fri', 'Thu', 'Wed', 'Tue', 'Mon']
source = ColumnDataSource(data)
p = figure(plot_width=800, plot_height=300, y_range=DAYS, x_axis_type='datetime', tools='tap, save',
title="Commits by Time of Day (US/Central) 2012-2016")
p.circle(x='time', y=jitter('day', width=0.6, range=p.y_range), source=source, alpha=0.3,
selection_color='magenta', selection_alpha=1, size=8)
p.xaxis[0].formatter.days = ['%Hh']
p.x_range.range_padding = 0
p.ygrid.grid_line_color = None
show(p)
On tap, I expect the point under my mouse to highlight.
What happens is that a repaint occurs causing a fresh jitter so the higlighted point has moved. This is particularly clear if you tap on two points that were on top of each other but have now moved
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
How in the name of God do you control recoil on console?
So if are stationary, or say, jump and are using your right stick, AA all of a sudden becomes very minimal and floaty....
Read more >Gilbert and Sullivan princess / FRI 5-15-20 / Rapper on the ...
This happens when that constructor has talent and fully and honestly taps into it, and isn't satisfied until it's polished as well as...
Read more >Building the ultimate NOS DAC using TDA1541A | Page 37 | diyAudio
I use a 160G HD media player (just a card with video and harddisk interface) and tap the I2S from the DSP to...
Read more >Changelog - GitHub
... #8469 Modifying a child element in a tab causes the whole tab to ... #7915 [component: bokehjs] Re-jitter on tap is unexpected...
Read more >The Catholic Telegraph - jstor
the unexpected honor of addressing me, and I hasten to ... express my surprise that you have not ... —ljondon Re jitter. Importation...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
there’s no need to talk smack about rats’ nests 😄
Since I think it’s the most common and cost effective, for now just got to get the cache on length for jitter done.