-
-
Notifications
You must be signed in to change notification settings - Fork 306
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
poor handling of LaTeX in x- and y-axis labels #2197
Comments
I use "CMU Serif", it's not exactly the same but it looks good enough. |
I also thought that it might be worthwhile to add some really simple markup syntax to our default layout algorithm which could handle super and subscripts. It's kind of unnecessary to rely on unicode for that, especially because we know coverage is not great. Maybe something html-looking like |
thanks for the tip! this is a decent patch, but honestly not a fan of the CMU Serif font / being restricted to this for all of my plots. allowing for html to make super and subscripts would be a great start! I'm finding myself changing variable names in my papers (to less ideal/clear ones) to accommodate Unicode/CairoMakie. 👀 |
@jkrumbiegel is there any way to make a subscript \infty? 😢 |
@lazarus, I'm trying to avoid the ugly LaTeX font so was wondering if this is possible with the unicode character. |
This could be done with fig, ax, obj = lines(0 .. 2π, sin;
figure=(; fontsize=38),
axis=(; title=rich("sin", subscript("∞"), "(x)")))
fig |
@Kolaru pointed out that one just needs 2 small little tweaks per font, which are probably these numbers here: |
I also suggested a little GLMakie app to tweak these per font. And I had super-subscript for |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
❤️ Makie generally, but to include these plots in scientific publications, imperative for me to include math in my x- and y-axis labels.
e.g. there seems to be no "q" subscript in Unicode so I must resort to LaTeX here. and it gives me two different fonts for my x- and y-axis labels. any way to mix LaTeX font for the variables with regular (nice-looking) font for the non-math mode? see how the x- and y-axis labels are in a different font?
sure, a solution for consistent font is to use LaTeX mode for everything, but this font for LaTeX is incredibly ugly. I'm thinking about
matplotlib
that allows LaTeX and text seamlessly.The text was updated successfully, but these errors were encountered: