question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

re-jitter on tap is unexpected

See original GitHub issue

This 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

bokeh_plot_two

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
birdsarahcommented, May 17, 2018

all of our signals because they are kind of a rats nest at the moment.

there’s no need to talk smack about rats’ nests 😄

0reactions
bryevdvcommented, Jun 7, 2018

Since I think it’s the most common and cost effective, for now just got to get the cache on length for jitter done.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found