Skip to content

Different renderer for summary text and axis labels #120

@benjaminpope

Description

@benjaminpope

Hi Sam,

I notice there is a different renderer for the summary text and the axis labels.

Defining labels like this in numpyro

    dra, ddec, log_flux = [npy.sample(r"\Delta \text{RA}",    dist.Uniform(100, 200)), 
              npy.sample(r"\Delta \text{Dec}",   dist.Uniform(100, 200)),
              npy.sample(r"\log \text{Flux}",    dist.Uniform(-5,-3))
            ]

I get math mode not rendered in the axis labels

image

but if I just use unicode on the labels

    dra, ddec, log_flux = [npy.sample("Δ RA",    dist.Uniform(100, 200)), 
              npy.sample("Δ Dec",   dist.Uniform(100, 200)),
              npy.sample("log Flux",    dist.Uniform(-5,-3))
            ]

I get

image

where the summary text is now displayed in math mode, which is also not what we want.

Is it possible to make these render consistently?

Cheers,

Ben

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions