# Superscripts in Plots.jl with units

**URL:** <https://discourse.julialang.org/t/superscripts-in-plots-jl-with-units/119652>\
**Category:** General Usage\
**Tags:** plots\
**Created:** [September 20, 2024, 5:59pm UTC](https://discourse.julialang.org/t/superscripts-in-plots-jl-with-units/119652 "2024-09-20T17:59:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Post date:** [September 20, 2024, 5:59pm UTC](https://discourse.julialang.org/t/superscripts-in-plots-jl-with-units/119652/1 "2024-09-20T17:59:19Z")

</div>

Doing:

```julia-repl
julia> using Plots, Unitful

julia> plot([1,2,3]u"s", [1,2,3]u"m/s")

```

produces this y-label:

![image](https://global.discourse-cdn.com/julialang/original/3X/1/e/1eabca64221b59d47211e3f402ce290fd15359b3.png)

Shouldn´t it produce m s^{-1} with a proper superscript?

---

<div class="post-metadata">

**Author:** ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Post date:** [September 20, 2024, 7:16pm UTC](https://discourse.julialang.org/t/superscripts-in-plots-jl-with-units/119652/2 "2024-09-20T19:16:10Z")

</div>

In parallel, is there a way to show units in a prettier way in tables in Pluto. For instance:

![image](https://global.discourse-cdn.com/julialang/original/3X/2/9/29c6861dc03ceb4dab908820ad6efc835d87e9f1.png)

It would be nice to have proper \mathrm{mol~kg^{-1}} units shown, and even better if the units were placed on the column titles, i. e. \mathrm{m\_3 / mol~kg^{-1}}.

Note: Latexify.jl does a pretty job there, but unfortunately it has to be inserted all over the place in the notebook (as far as I know), and that is not convenient.
