I’m trying to somehow plot “subplots”, having different x,y values. The grid example is great for the geometry of the output. But no example shows how to create the DataSource from scratch and to pass the column names as args to line() or scatter().
I’ve tried something like that to initialize my plots (which will then be updated/animated)
x = {}
y = {}
ds = DataSource()
for id in ids:
ds["x_%s"%id] = [0,]
ds["y_%s"%id] = [0,]
line("x_%s"%id,"y_%s"%id, color="#0000FF", tools="pan,zoom,resize",
width=1280,height=200,
x_axis_type = "datetime",
title=id
)
I hope to have it fixed in GH this afternoon, and FYI we are planning a 0.3 follow on release next week, that is mostly a build system refactor and repository consolidation, but that will also contain several bug fixes as well.
Thanks!
Bryan
···
On Nov 7, 2013, at 8:43 AM, Thomas Lecocq <[email protected]> wrote:
Hi,
I'm trying to somehow plot "subplots", having different x,y values. The grid example is great for the geometry of the output. But no example shows how to create the DataSource from scratch and to pass the column names as args to line() or scatter().
I've tried something like that to initialize my plots (which will then be updated/animated)
x = {}
y = {}
ds = DataSource()
for id in ids:
ds["x_%s"%id] = [0,]
ds["y_%s"%id] = [0,]
Thomas, I have pushed a change to GH master that should fix this problem an allow the code below (and in the issue #155) to function properly. Please let me know if it works for you,
Thanks,
Bryan
···
On Nov 7, 2013, at 11:11 AM, Bryan Van de Ven <[email protected]> wrote:
Hi Thomas,
It *should* just work by adding a “source” keyword argument to the renderer call, like this:
I hope to have it fixed in GH this afternoon, and FYI we are planning a 0.3 follow on release next week, that is mostly a build system refactor and repository consolidation, but that will also contain several bug fixes as well.
Thanks!
Bryan
On Nov 7, 2013, at 8:43 AM, Thomas Lecocq <[email protected]> wrote:
Hi,
I'm trying to somehow plot "subplots", having different x,y values. The grid example is great for the geometry of the output. But no example shows how to create the DataSource from scratch and to pass the column names as args to line() or scatter().
I've tried something like that to initialize my plots (which will then be updated/animated)
x = {}
y = {}
ds = DataSource()
for id in ids:
ds["x_%s"%id] = [0,]
ds["y_%s"%id] = [0,]