Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. 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

I am trying to graph a trig function in WolframAlpha. I want the x axis to show radians. It will do this for a basic function, such as $y=\sin x$, but for many functions it will just label the x axis from -10 to 10. I have googled this and this is the best I can come up with:

plot sin (x/2 -pi/16) ,Ticks ->{{-pi, -pi/2, 0, pi/2, pi, 3pi/2, 2pi, 5pi/2},{-1,1}}

It doesn't work, WolframAlpha just plots the function from -10 to 10 on the x axis.

share|cite|improve this question
up vote 3 down vote accepted

For more sophisticated plots WolframAlpha is not the best option, I only use it for a first idea of the function. Never the less using Mathematica Syntax might help.

At least the PlotRange you can chose via

Plot[ Sin [x/2 - Pi/16], {x, -Pi, 5 Pi/2}]

which gives you this

If you have Mathematica you have a lot more options for Plots, using the command

Plot[ Sin [x/2 - Pi/16], {x, -Pi, 5 Pi/2}, 
    Ticks -> {{-Pi, -Pi/2, 0, Pi/2, Pi, 3 Pi/2, 2 Pi, 5 Pi/2}, {-1, 1}}]

gives you

enter image description here

share|cite|improve this answer
is the same possible in "maxima"? – Vikram Aug 25 '13 at 9:35
I don't konw maxima i am afraid – Dominic Michaelis Aug 25 '13 at 9:42
Thanks for the tip about setting the Plot Range. I don't have access to Mathematica. It would be good to find a free piece of software that does allow me to specify the axes how I wish. – mikoyan Aug 25 '13 at 15:46
@mikoyan I guess there are tons of free software for this. Even $\LaTeX$ can do this if you use packages like TikZor others. – Dominic Michaelis Aug 25 '13 at 15:51
Yes, but this does not keep sub-ticks... – Alexey Bobrick May 2 at 14:07

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.