☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

Equivalent to matplotlib's axis('off')

Community Support
Alex_W
Alex_W

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?

⌁   Link to post
Bryan
Bryan

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 <alex.bw@gmail.com> 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 bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
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\.

⌁   Link to post
Bryan
Bryan

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

Bryan

···

On Dec 31, 2014, at 5:10 PM, Bryan Van de Ven <bryan@bokeh.org> 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 <alex.bw@gmail.com> 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 bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
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\.

⌁   Link to post
Alex_W
Alex_W

Thanks, worked perfectly.

···

On Wed, Dec 31, 2014 at 6:11 PM, Bryan Van de Ven bryan@bokeh.org 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 bryan@bokeh.org 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 alex.bw@gmail.com 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 bokeh+unsubscribe@continuum.io.

To post to this group, send email to bokeh@continuum.io.

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 bokeh+unsubscribe@continuum.io.

To post to this group, send email to bokeh@continuum.io.

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.

⌁   Link to post

End of archived discussion · Replies are disabled