Hi, Iβm trying to create a plot with Plots: without using Latex, how can one make an italic label for the axes?
Thanks!
One solution is posted here using unicode. Just copy and paste your text from the website linked, to the Plotsβ labels inside raw""
:
using Plots
scatter(rand(10,10), xlabel=raw"π³ππππ ππ ππππππ")
Thatβs quite clever, as a workaround, and works with English and no other(?) (European) languages. Also works for bold and/or italics.
Works for my (Icelandic) name: βππΜππ
Haraldssonβ, but not for e.g. [PΓ‘ll] Γorkellsson, had I been the son of Γorkell. EDIT, maybe I spoke too soon, copying into the REPL, it looks odd, but that may or may not apply to your plotting package (I suppose could depend, e.g. working for web based ones?).
I donβt think you need raw as in raw"π³ππππ ππ ππππππ"
Thatβs strange (and curious why is it be needed?), since:
julia> julia> raw"π³ππππ ππ ππππππ" == "π³ππππ ππ ππππππ" # also same (String) types.
true
Thanks a lot for the suggestions! I indeed solved my issue.
Honestly, I have no idea⦠But instead of raw
, it would work just as well if we protected the above unicode italic string in parentheses ( )