☰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

How to change the axis label in JS?

Community Support
Pythonic
Pythonic

I need to change the labeling of the axes dynamically, just like setting a new title for a plot by doing plot.attributes.title = "New Title"

Where is the label property of my plot’s xaxis and yaxis? I tried digging into plot.frame but did not find it

Thanks!

(to clarify, this topic and this other topic discuss the same issue but from a purely python / bokeh-server perspective)

⌁   Link to post
Bryan
Bryan

Hi,

Bokeh models are Backbone models, so you generally will want to use .set('attrname', value) to set property values (and .get('attrname') to get them). In this case you nee to do

  axis.set('axis_label', 'my label')

The axes are renderers, they are stored in the "renderers" attribute of plots (so, plot.get('renderers') will get all of the renderers, you'll have to search for the axis you want)

Bryan

···

On Jan 3, 2016, at 4:07 AM, Pythonic <gsp.sette@gmail.com> wrote:

I need to change the labeling of the axes dynamically, just like setting a new title for a plot by doing plot.attributes.title = "New Title"

Where is the label property of my plot's xaxis and yaxis? I tried digging into plot.frame but did not find it

Thanks!

(to clarify, this topic and this other topic discuss the same issue but from a purely python / bokeh-server perspective)

--
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/4cb1d98e-2731-4981-8e77-af839ca6d999%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

⌁   Link to post
Pythonic
Pythonic

Thanks Brian!

Look forward to testing 0.11

···

On Thursday, 7 January 2016 03:53:16 UTC, Bryan Van de ven wrote:

Hi,

Bokeh models are Backbone models, so you generally will want to use .set(‘attrname’, value) to set property values (and .get(‘attrname’) to get them). In this case you nee to do

    axis.set('axis_label', 'my label')

The axes are renderers, they are stored in the “renderers” attribute of plots (so, plot.get(‘renderers’) will get all of the renderers, you’ll have to search for the axis you want)

Bryan

On Jan 3, 2016, at 4:07 AM, Pythonic gsp....@gmail.com wrote:

I need to change the labeling of the axes dynamically, just like setting a new title for a plot by doing plot.attributes.title = “New Title”

Where is the label property of my plot’s xaxis and yaxis? I tried digging into plot.frame but did not find it

Thanks!

(to clarify, this topic and this other topic discuss the same issue but from a purely python / bokeh-server perspective)

–
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/4cb1d98e-2731-4981-8e77-af839ca6d999%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