Skip to content

Adding support for superscript exponents #8954

Closed
@micrenda

Description

@micrenda

It would be very useful to me to have logarictimic axis values written as 10⁴¹ instead than 10^41.

I implemented a patch to add this feature, which add a new property LogTickFormatter.use_superscript_exponents:
https://github.com/micrenda/bokeh/tree/use_superscript_exponents

But there are two pending issues:

  1. It seems that this code is just ignored:
    p.xaxis[0].formatter.use_superscript_exponents = True
    (an expert Bokeh developer will surely find a solution)

  2. The exponents from 1 to 3 are rendered with a smaller font (I think this is a font related issues, changing fonts may help).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions