Hi,
I’m coming from the matplotlib world where you can specify multiple plots (axes) on the same figure using the subplots/subplot functionality. For a concrete example I can create two side-by-side plots with:
fig, (ax1, ax2) = plt.subplots(1, 2)
Is the any way to do the same in bokeh?
If I were running a webserver I assume I could do this via html myself?
I’m actually wanting to do this in the IPython notebook however, so was wondering if it was possible in that context?
Even if it is possible via HTML hackery, it might still be nice to have a convenience function to do this for web0 noobs such as myself.
Hi Dave, it is possible to work with subplots in Bokeh.
Some info:
bokeh.plotting.gridplot(*args, **kw)
Generate a plot that arranges several subplots into a grid.
Parameters:
plot_arrangement (list[ – class:Plot <bokeh.objects.Plot>]) : plots to arrange in a grid
name (str) – name for this plot
Note
plot_arrangement can be nested
Returns: grid_plot – the current GridPlot
Hi,
I’m coming from the matplotlib world where you can specify multiple plots (axes) on the same figure using the subplots/subplot functionality. For a concrete example I can create two side-by-side plots with:
fig, (ax1, ax2) = plt.subplots(1, 2)
Is the any way to do the same in bokeh?
If I were running a webserver I assume I could do this via html myself?
I’m actually wanting to do this in the IPython notebook however, so was wondering if it was possible in that context?
Even if it is possible via HTML hackery, it might still be nice to have a convenience function to do this for web0 noobs such as myself.
Thanks,
Dave
–
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 [email protected].
Just to add to this, more sophisticated auto faceting/plot layout is definitely on the Bokeh roadmap as well.
Bryan
···
On Apr 29, 2014, at 7:36 AM, Damian Avila <[email protected]> wrote:
Hi Dave, it is possible to work with subplots in Bokeh.
Some info:
bokeh.plotting.gridplot(*args, **kw)
Generate a plot that arranges several subplots into a grid.
Parameters:
plot_arrangement (list[ – class:Plot <bokeh.objects.Plot>]) : plots to arrange in a grid
name (str) – name for this plot
Note
plot_arrangement can be nested
Returns: grid_plot – the current GridPlot
On Tue, Apr 29, 2014 at 9:04 AM, <[email protected]> wrote:
Hi,
I'm coming from the matplotlib world where you can specify multiple plots (axes) on the same figure using the subplots/subplot functionality. For a concrete example I can create two side-by-side plots with:
fig, (ax1, ax2) = plt.subplots(1, 2)
Is the any way to do the same in bokeh?
If I were running a webserver I assume I could do this via html myself?
I'm actually wanting to do this in the IPython notebook however, so was wondering if it was possible in that context?
Even if it is possible via HTML hackery, it might still be nice to have a convenience function to do this for web0 noobs such as myself.