subplots

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

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

And you have an example showing this feature here: https://github.com/ContinuumIO/bokeh/blob/master/examples/plotting/file/grid.py

Cheers.

Damián.

···

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.

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].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/11e5d75b-5632-4e7a-8fe5-ffd47060508c%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Dave,

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

And you have an example showing this feature here: https://github.com/ContinuumIO/bokeh/blob/master/examples/plotting/file/grid.py

Cheers.

Damián.

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.

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].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/11e5d75b-5632-4e7a-8fe5-ffd47060508c%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

--
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].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/CAM9Ly3H3rGKoGUZN7NDD%3Dc1Tx6912A-ZDJ7a6DieWU_dBzAktw%40mail.gmail.com.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.