I am trying to plot the function y=3sin(4x) using pstricks. I am trying to change the values on the x-axis. The values from the origin to be \pi/8, 3\pi/8,\5pi/8, etc. The sine function will go through the origin and the max point (point 2) should be at \pi/8, however, I can't change the axis to make it happen. Here is my code and graph.
Code: Select all
\documentclass{article}
\usepackage{pstricks-add}
\usepackage{pst-func}
\begin{document}
\psset{trigLabels=true}
\begin{pspicture}(-0.5,-3)(6.5,4)
\psaxes[trigLabelBase=2,dx=\psPiH, xunit=\psPiTwo,trigLabels]{->}(0,0)(0,-3)(1,4)[$x$,0][$y$,90]
\psset{algebraic}
\psplot[linewidth=1.6pt,plotpoints=2000,
linecolor=red,arrows=<->]{0}{6.28}{3*sin(4*x)}
\end{pspicture}
\end{document}
Nick