I open this question because I have not been able to set the Computer Modern font in Makie. The only workaround I found to write the numbers of the x and y axis in LaTeX is to extract the attribute from the plot that contains these numbers and manually changing them to LaTeX with the notation L"number" and then putting them back into the corresponding attributes that contains these labels.
However, I think that there should be a way where you just change the font of the whole plot but I did not manage to find it in the documentation or other related questions.
Thank you for your response! But that does not look like LaTeX right?
In this other example, using the Plots package, that font produces LaTeX figures. When I run the code using “Computer Modern” with Makie I get a message saying that font does not exist and if defaults to “Dejavu Sans”