On Dec 18, 2015, at 2:39 PM, RedRaven <remus984@gmail.com> wrote:
So Ive been digging a little on my question here and it looks like what I need is a CustomJS interaction. Something like this:
// get data source from Callback args
var data = source.get('data');
/// get coordinates from cb_data parameter of Callback
var geometry = cb_data['data'];
/// Somehow obtain the X,Y coordinates of the mouse?
var x = data['x']???
var y = data['y']???
/// update data source with new series of coordinates
data['x'].push(x);
data['y'].push(y);
// trigger update of data source
source.trigger('change');
Is this about right? What can I pull out from cb_data? I'm not familiar with JavaScript so I welcome any comments of suggestions here.
On Friday, 18 December 2015 14:00:55 UTC-5, RedRaven wrote:
Thanks Bryan. Well Im not entirely sure I am at the level that I can contribute but I will try to add what I can to the process.
I've gotten quite a bit of traction here thanks to you and Fabio. One last questions here, Is there a tool that lets you draw on the plot? Similar to the way you can write a drawing app using the Tkinter Canvas?
What I mean by this is, Bokeh has the hover tool and the selection tool. Is it possible to collect the mouse coordinates and to then plot a line plot over them?
On Friday, 18 December 2015 09:42:04 UTC-5, RedRaven wrote:
I upgraded to the most recent dev distrbution of bokeh. I am now looking through some of the examples and I find that in some cases I get a blank browser window.
This happens for:
buttons_server.py
timeout_stocks.py
and stocks
My configuration is Windows 8 64, Anaconda 32 bit 2.7 latest package, Bokeh 0.11 dev.
What am I missing here?
--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/4981f781-c33b-4543-a404-aad5f94a3b67%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.