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)
On Jan 3, 2016, at 4:07 AM, Pythonic <[email protected]> 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
(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 [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/4cb1d98e-2731-4981-8e77-af839ca6d999%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.