Equivalent to matplotlib's axis('off')

Is there an equivalent command in Bokeh or the options for a BokehJS plot that hides everything except for the plotted data?
By “hides everything”, I mean the behavior of matplotlib’s axis(‘off’) command, which leaves nothing but the data you have plotted, omitting grids, axes, axis ticks, headers, titles, legends, etc.

Is this possible?

Some things have not been completely documented well because we are not entirely happy with the spelling yet. But assuming you are using the bokeh.plotting interface, you can create your figure like this:

  p = figure(x_axis_type=None, y_axis_type=None, toolbar_location=None, outline_line_color=None)

That will result in no axes/grids, toolbar, or plot outline.

If you are using the low level "glyphs" interface you can simply just never add axes or grids, and set the toolbar location and outline color to None on the Plot directly.

Let me know if more information is needed.

Thanks,

Bryan

···

On Dec 31, 2014, at 4:52 PM, Alex W <[email protected]> wrote:

Is there an equivalent command in Bokeh or the options for a BokehJS plot that hides everything except for the plotted data?
By "hides everything", I mean the behavior of matplotlib's axis('off') command, which leaves nothing but the data you have plotted, omitting grids, axes, axis ticks, headers, titles, legends, etc.

Is this possible?

--
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/111342e9-6aab-460a-ac8e-064e9a5abdf7%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

Oh, also add "title=None" to suppress the default title "Plot".

Bryan

···

On Dec 31, 2014, at 5:10 PM, Bryan Van de Ven <[email protected]> wrote:

Some things have not been completely documented well because we are not entirely happy with the spelling yet. But assuming you are using the bokeh.plotting interface, you can create your figure like this:

  p = figure(x_axis_type=None, y_axis_type=None, toolbar_location=None, outline_line_color=None)

That will result in no axes/grids, toolbar, or plot outline.

If you are using the low level "glyphs" interface you can simply just never add axes or grids, and set the toolbar location and outline color to None on the Plot directly.

Let me know if more information is needed.

Thanks,

Bryan

On Dec 31, 2014, at 4:52 PM, Alex W <[email protected]> wrote:

Is there an equivalent command in Bokeh or the options for a BokehJS plot that hides everything except for the plotted data?
By "hides everything", I mean the behavior of matplotlib's axis('off') command, which leaves nothing but the data you have plotted, omitting grids, axes, axis ticks, headers, titles, legends, etc.

Is this possible?

--
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/111342e9-6aab-460a-ac8e-064e9a5abdf7%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

Thanks, worked perfectly.

···

On Wed, Dec 31, 2014 at 6:11 PM, Bryan Van de Ven [email protected] wrote:

Oh, also add “title=None” to suppress the default title “Plot”.

Bryan

On Dec 31, 2014, at 5:10 PM, Bryan Van de Ven [email protected] wrote:

Some things have not been completely documented well because we are not entirely happy with the spelling yet. But assuming you are using the bokeh.plotting interface, you can create your figure like this:

  p = figure(x_axis_type=None, y_axis_type=None, toolbar_location=None, outline_line_color=None)

That will result in no axes/grids, toolbar, or plot outline.

If you are using the low level “glyphs” interface you can simply just never add axes or grids, and set the toolbar location and outline color to None on the Plot directly.

Let me know if more information is needed.

Thanks,

Bryan

On Dec 31, 2014, at 4:52 PM, Alex W [email protected] wrote:

Is there an equivalent command in Bokeh or the options for a BokehJS plot that hides everything except for the plotted data?

By “hides everything”, I mean the behavior of matplotlib’s axis(‘off’) command, which leaves nothing but the data you have plotted, omitting grids, axes, axis ticks, headers, titles, legends, etc.

Is this possible?

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/111342e9-6aab-460a-ac8e-064e9a5abdf7%40continuum.io.

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

You received this message because you are subscribed to a topic in the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this topic, visit https://groups.google.com/a/continuum.io/d/topic/bokeh/XuMPwqb2noI/unsubscribe.

To unsubscribe from this group and all its topics, 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/D5B835FF-E7BD-4CC6-AEFB-214AFA7D958E%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.