☰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

axis label autosize

Community Support
Bryan
Bryan

Hi,

The most reasonable approach currently probably involves making a custom extension. You can create your own custom tick formatter, that is also configured with the axis model, so that it can just tick label text properties based on whatever conditions you want to check. This is a slight stretch from from what tick formatters normally do (usually just format the plain text) but should be workable.

Thanks,

Bryan

···

On Jul 19, 2017, at 11:00, gblackshields@gmail.com wrote:

Following the heatmap example given here : http://bokeh.pydata.org/en/latest/docs/gallery/unemployment.html

Is there a way to set axis (tick) labels to autosize? I'd like the 'year' tick labels to increase in size / legibility as I zoom in on the plot. Having them set to such a small fontsize is only relevant when viewing the whole image.
( I have many more 'years' in my actual dataset, usually a lot more 'months' too! :slight_smile: )

--
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/6877511b-6f45-41fa-92b7-54276b0acb77%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

⌁   Link to post
gblackshields
gblackshields

Thanks Bryan, will give it a go.

···

On Wednesday, 19 July 2017 17:06:21 UTC+1, Bryan Van de ven wrote:

Hi,

The most reasonable approach currently probably involves making a custom extension. You can create your own custom tick formatter, that is also configured with the axis model, so that it can just tick label text properties based on whatever conditions you want to check. This is a slight stretch from from what tick formatters normally do (usually just format the plain text) but should be workable.

Thanks,

Bryan

On Jul 19, 2017, at 11:00, gblack...@gmail.com wrote:

Following the heatmap example given here : http://bokeh.pydata.org/en/latest/docs/gallery/unemployment.html

Is there a way to set axis (tick) labels to autosize? I’d like the ‘year’ tick labels to increase in size / legibility as I zoom in on the plot. Having them set to such a small fontsize is only relevant when viewing the whole image.
( I have many more ‘years’ in my actual dataset, usually a lot more ‘months’ too! :slight_smile: )

–
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/6877511b-6f45-41fa-92b7-54276b0acb77%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