Latex in GLMakie, no spaces

Enlil50
Tue, 05 Mar 2024 12:47:54 +0000
General Usage

When trying to use Latex with GLMakie in this code:

using GLMakie

f = Figure(backgroundcolor = "#f5f0f5")
ax = Axis(f[1, 1],
    title = L"A Makie Axis",
    xlabel = L"The x label",
    ylabel = L"The y label \omega"
)
display(f)

This is the output:

There is no space. I added a scientific symbol and it’s useful to note that it doesn’t need $$ to be displayed. This means all the text is considered as an equation.

Is there a way to set the text as default and use $$ to delimit symbols?

8 posts - 4 participants