Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a simple way, besides changing my function to use Degree as input, to display the x-axis in degrees in a plot of a function defined with its independent variable taking radians?

share|improve this question
It does not get simpler than Plot[f[x Degree],{x,-1,1}] , and you can control exactly what is shown on the axis with the Ticks option of Plot. Theoretically you could do post-processing on the Graphic object but that seems to me to be overkill. – William Briand Mar 13 '14 at 20:00
not about Degree but duplicate imo. Also related – Kuba Mar 13 '14 at 20:46
f[range_List, divs_] := {# Pi/180, # Degree} & /@ FindDivisions[range 180/Pi, divs, 10]; 
plot[g_, range_]:= Plot[g[x], Evaluate@Join[{x}, range], Ticks-> {f[range, 10], Automatic}];
g = Sin;
plot[g, {0, 2 Pi}]

Mathematica graphics

share|improve this answer
Interesting, I din't know about FindDivisions. +1 – Murta Mar 13 '14 at 20:25
@Murta The function doesn't work very well. The standard Plot[] automatic ticks are much more robust. – Dr. belisarius Mar 14 '14 at 0:27
Is there a way to keep the nice sub-ticks when replacing the tick labels? – Alexey Bobrick May 2 at 14:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.