Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different renderer for summary text and axis labels #120

Open
benjaminpope opened this issue Apr 13, 2024 · 1 comment
Open

Different renderer for summary text and axis labels #120

benjaminpope opened this issue Apr 13, 2024 · 1 comment

Comments

@benjaminpope
Copy link

benjaminpope commented Apr 13, 2024

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

@Samreay
Copy link
Owner

Samreay commented Apr 13, 2024

Hmmmm yeah that's strange, I'll look into this when I'm back from parental leave. Please ping me here if I haven't comments again in a week or two. Similarly, if you look into it yourself and figure it out, a full or partial PR will gladly be accepted:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants