Horizontal BoxPlots

The bokeh.charts.BoxPlot chart is easy to create and looks great, but I would really like to be able to flip it over on its side such that the boxes run parallel with the x-axis instead of the y-axis. In effect, I would like to switch around the categorical and linear axis but keep everything else the same. Does anyone know if this is possible, without rewriting the entire rendering of the BoxPlot with e.g. the bokeh.plotting library?

Thanks, T

Hi Toby,

BoxPlot does not currently have an option for horizontal presentation. There is a bokeh.plotting boxplot example here in case it is a useful reference:

  https://github.com/bokeh/bokeh/blob/master/examples/plotting/file/boxplot.py

Adding an option for a horizontal BoxPlot might also not be too difficult. If you were interested in looking into working up a PR for that we would certainly help answer any questions we could.

Thanks,

Bryan

···

On Aug 11, 2016, at 7:36 AM, Toby Hodges <[email protected]> wrote:

The bokeh.charts.BoxPlot chart is easy to create and looks great, but I would really like to be able to flip it over on its side such that the boxes run parallel with the x-axis instead of the y-axis. In effect, I would like to switch around the categorical and linear axis but keep everything else the same. Does anyone know if this is possible, without rewriting the entire rendering of the BoxPlot with e.g. the bokeh.plotting library?

Thanks, T

--
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/5ecd0a13-60ad-4602-899a-0443a1bca652%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

Thanks for the helpful response, Bryan.

I’d like to get involved, so I’ll investigate the possibility of adding an option to render the BoxPlot in horizontal orientation.

···

On Friday, August 12, 2016 at 3:16:56 AM UTC+2, Bryan Van de ven wrote:

Hi Toby,

BoxPlot does not currently have an option for horizontal presentation. There is a bokeh.plotting boxplot example here in case it is a useful reference:

    [https://github.com/bokeh/bokeh/blob/master/examples/plotting/file/boxplot.py](https://github.com/bokeh/bokeh/blob/master/examples/plotting/file/boxplot.py)

Adding an option for a horizontal BoxPlot might also not be too difficult. If you were interested in looking into working up a PR for that we would certainly help answer any questions we could.

Thanks,

Bryan

On Aug 11, 2016, at 7:36 AM, Toby Hodges [email protected] wrote:

The bokeh.charts.BoxPlot chart is easy to create and looks great, but I would really like to be able to flip it over on its side such that the boxes run parallel with the x-axis instead of the y-axis. In effect, I would like to switch around the categorical and linear axis but keep everything else the same. Does anyone know if this is possible, without rewriting the entire rendering of the BoxPlot with e.g. the bokeh.plotting library?

Thanks, T


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/5ecd0a13-60ad-4602-899a-0443a1bca652%40continuum.io.

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

Hi,

I’m looking for a horizontal boxplot as well.

Instead of adding a horizontal boxplot, is it possible to add an option at figure level to flip x- and y- axis? By this way, we get horizontal bar plot as well.

···

On Friday, 12 August 2016 08:43:00 UTC+1, Toby Hodges wrote:

Thanks for the helpful response, Bryan.

I’d like to get involved, so I’ll investigate the possibility of adding an option to render the BoxPlot in horizontal orientation.

On Friday, August 12, 2016 at 3:16:56 AM UTC+2, Bryan Van de ven wrote:

Hi Toby,

BoxPlot does not currently have an option for horizontal presentation. There is a bokeh.plotting boxplot example here in case it is a useful reference:

    [https://github.com/bokeh/bokeh/blob/master/examples/plotting/file/boxplot.py](https://github.com/bokeh/bokeh/blob/master/examples/plotting/file/boxplot.py)

Adding an option for a horizontal BoxPlot might also not be too difficult. If you were interested in looking into working up a PR for that we would certainly help answer any questions we could.

Thanks,

Bryan

On Aug 11, 2016, at 7:36 AM, Toby Hodges [email protected] wrote:

The bokeh.charts.BoxPlot chart is easy to create and looks great, but I would really like to be able to flip it over on its side such that the boxes run parallel with the x-axis instead of the y-axis. In effect, I would like to switch around the categorical and linear axis but keep everything else the same. Does anyone know if this is possible, without rewriting the entire rendering of the BoxPlot with e.g. the bokeh.plotting library?

Thanks, T


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/5ecd0a13-60ad-4602-899a-0443a1bca652%40continuum.io.

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

There is now a HBar glyph (and plot.hbar glyph method). That is probably your best bet for creating a horizontal bar chart. The bokeh.charts.Bar API does not currently have a horizontal option, and there is also no plot-level setting to swap x- and y-axes. That might be a reasonable feature request, so feel free to open an issue on GH (though I can't guarantee when anyone on the current core team might be able to get to it).

Thanks,

Bryan

···

On Sep 4, 2016, at 12:46 PM, [email protected] wrote:

Hi,

I'm looking for a horizontal boxplot as well.

Instead of adding a horizontal boxplot, is it possible to add an option at figure level to flip x- and y- axis? By this way, we get horizontal bar plot as well.

On Friday, 12 August 2016 08:43:00 UTC+1, Toby Hodges wrote:
Thanks for the helpful response, Bryan.

I'd like to get involved, so I'll investigate the possibility of adding an option to render the BoxPlot in horizontal orientation.

On Friday, August 12, 2016 at 3:16:56 AM UTC+2, Bryan Van de ven wrote:
Hi Toby,

BoxPlot does not currently have an option for horizontal presentation. There is a bokeh.plotting boxplot example here in case it is a useful reference:

        https://github.com/bokeh/bokeh/blob/master/examples/plotting/file/boxplot.py

Adding an option for a horizontal BoxPlot might also not be too difficult. If you were interested in looking into working up a PR for that we would certainly help answer any questions we could.

Thanks,

Bryan

> On Aug 11, 2016, at 7:36 AM, Toby Hodges <[email protected]> wrote:
>
> The bokeh.charts.BoxPlot chart is easy to create and looks great, but I would really like to be able to flip it over on its side such that the boxes run parallel with the x-axis instead of the y-axis. In effect, I would like to switch around the categorical and linear axis but keep everything else the same. Does anyone know if this is possible, without rewriting the entire rendering of the BoxPlot with e.g. the bokeh.plotting library?
>
> Thanks, T
>
> --
> 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+un...@continuum.io.
> To post to this group, send email to bo...@continuum.io.
> To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/5ecd0a13-60ad-4602-899a-0443a1bca652%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/deb444d9-01a3-4354-96cc-efe339b833a8%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.