0

I want to plot the function $\sin(x)$ versus $x$. The problem is that I want to scale $x$ based on radian angles (like $\pi/6, \pi/3, \ldots$).

But as we see in the image below, it's not based on pi-type angles. How can I do that?

Plot[Sin[x], {x, 0, 2 Pi}, Frame -> True]

enter image description here

Domen
  • 23,608
  • 1
  • 27
  • 45
reza
  • 103
  • 2

1 Answers1

1
Plot[Sin[x], {x, 0, 2 \[Pi]}, 
 FrameTicks -> {{Automatic, None}, {Table[z, {z, 0, 2 \[Pi], Pi/6}], 
    None}}, Frame -> True]

enter image description here

Daniel Huber
  • 51,463
  • 1
  • 23
  • 57