I am plotting a Bar legend for the density plot using BarLegend. I got the desired bar legend but it has ticks in the form $\frac{\pi}{6},~\frac{\pi}{3},..$, I want them to be like $\pi/6,~\pi/3,...$ I want to write the division using slash. How can I do this in mathematica.
The code I am using is:
BarLegend[{Hue[Rescale[#, {0, Pi}, {0, 1}]] &, {π/6 - .1, 2 π/3 + .1}},
LabelStyle -> Directive[Black, Bold, Medium, FontFamily -> "Courier"],
ColorFunctionScaling -> False,
Ticks -> {π/6, π/3, π/2, 2 π/3}]




FormatType->StandardForm! – Carl Lange Jan 21 '19 at 13:54