# How to display "Angstrom" symbol as an axis label in Makie?

**URL:** https://discourse.julialang.org/t/how-to-display-angstrom-symbol-as-an-axis-label-in-makie/88827
**Category:** Visualization
**Tags:** makie
**Created:** [October 17, 2022, 6:34am UTC](https://discourse.julialang.org/t/how-to-display-angstrom-symbol-as-an-axis-label-in-makie/88827 "2022-10-17T06:34:49Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![PuDu-Astro](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pudu-astro/32/43604_2.png) [@PuDu-Astro](https://discourse.julialang.org/u/PuDu-Astro)
#### Post date: [October 17, 2022, 6:34am UTC](https://discourse.julialang.org/t/how-to-display-angstrom-symbol-as-an-axis-label-in-makie/88827/1 "2022-10-17T06:34:49Z")

</div>

Angstrom is commonly used as an unit in astronomy. In LaTeX, we can easily input it using “\AA”. I tried to display it in Makie as an axis label, but failed. L"\AA" doesn’t work.

For example:

using CairoMakie, LaTeXStrings  
fig = Figure(font = “CMU Serif”)  
x = range(1, stop = 10, length = 1000)  
y = sin.(x)  
ax = Axis(fig[1, 1], ylabel = L"y (\AA)“, xlabel = L"x”)  
lines!(ax, x, y)  
save(“temp.pdf”, fig)  
fig

Is there any method to make it displayed properly? Thanks very much.

---

<div class="post-metadata">

### Author: ![GunnarFarneback](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gunnarfarneback/32/1827_2.png) [@GunnarFarneback](https://discourse.julialang.org/u/GunnarFarneback)
#### Post date: [October 17, 2022, 7:29am UTC](https://discourse.julialang.org/t/how-to-display-angstrom-symbol-as-an-axis-label-in-makie/88827/2 "2022-10-17T07:29:46Z")

</div>

Just type `\AA<TAB>` to get a unicode `Å` and use that?

---

<div class="post-metadata">

### Author: ![Krastanov](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/krastanov/32/6817_2.png) [@Krastanov](https://discourse.julialang.org/u/Krastanov)
#### Post date: [October 17, 2022, 7:39am UTC](https://discourse.julialang.org/t/how-to-display-angstrom-symbol-as-an-axis-label-in-makie/88827/3 "2022-10-17T07:39:33Z")

</div>

Just to clarify, most Julia tools support input for unicode characters. E.g. if you use julia in the terminal or in VS code, Jupyter, Pluto, you can input latex-like unicode characters by slash-followed-by-tab autocompletion. I would also suggest installing the wonderful Julia Mono typeface, a font that makes your unicode-rich code so much more beautiful [https://juliamono.netlify.app/](https://juliamono.netlify.app/)

Of course, going straight to LaTeXStrings is a reasonable approach too.

---

<div class="post-metadata">

### Author: ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://discourse.julialang.org/u/jules)
#### Post date: [October 17, 2022, 7:49am UTC](https://discourse.julialang.org/t/how-to-display-angstrom-symbol-as-an-axis-label-in-makie/88827/4 "2022-10-17T07:49:19Z")

</div>

You can also open an issue to add the command to MathTeXEngine.jl if you think that it should be supported.

---

<div class="post-metadata">

### Author: ![cormullion](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cormullion/32/49131_2.png) [@cormullion](https://discourse.julialang.org/u/cormullion)
#### Post date: [October 17, 2022, 9:55am UTC](https://discourse.julialang.org/t/how-to-display-angstrom-symbol-as-an-axis-label-in-makie/88827/5 "2022-10-17T09:55:50Z")

</div>

Your code works fine for me:

 ![Screenshot 2022-10-17 at 10.46.58](https://global.discourse-cdn.com/julialang/original/3X/5/0/503555e17a10b07b0d078ebbe953e1e2a4bf7b93.png)

↑ PDF, although the PNG shows a bit of pixellation:

 ![Screenshot 2022-10-17 at 10.39.38](https://global.discourse-cdn.com/julialang/original/3X/4/4/442afface0180e05204ac22260cb2aa5c6a6c6b6.png)

MathTeXEngine v0.5.0 is happy to display `Å` via LaTeXStrings:

 ![Screenshot 2022-10-17 at 10.43.26](https://global.discourse-cdn.com/julialang/original/3X/5/d/5dc79fde88faf7f614b5a63cd2dff4301e459997.png)

I believe it uses the NewComputerModern font automatically.

---

<div class="post-metadata">

### Author: ![PuDu-Astro](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pudu-astro/32/43604_2.png) [@PuDu-Astro](https://discourse.julialang.org/u/PuDu-Astro)
#### Post date: [October 17, 2022, 12:18pm UTC](https://discourse.julialang.org/t/how-to-display-angstrom-symbol-as-an-axis-label-in-makie/88827/6 "2022-10-17T12:18:30Z")

</div>

Thank you very much. I update my MathTeXEngine to version 0.5.3, then it works fine! 😁
