I am plotting an angle from 0 to pi and would like the tick marks at fractions of pi ( i.e. pi/4, pi/2, etc ) and the label of these tick marks to actually be pi/4 etc and not the decimal equivalent.

I cannot find any documentation that shows how to tell an axis to do this. Surely there is a simple way.