axis label autosize

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: )

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

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, [email protected] 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 [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/6877511b-6f45-41fa-92b7-54276b0acb77%40continuum.io.

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