\documentclass[12pt,pstricks,border=5pt]{standalone}
\usepackage{pst-plot}
\begin{document}
\begin{pspicture}(-7,-1.5)(7,1.5)
\psaxes[Dx=90,dx=\psPiH,xunit=\psPi,xlabelFactor={}^\circ]{->}(0,0)(-2.2,-1.5)(2.2,1.5)
\psplot[linecolor=red,linewidth=1.5pt,algebraic,plotpoints=100]{-7}{7}{sin(x)}
\end{pspicture}
\end{document}
问题
如何去除0
原产地的标签?
答案1
将键设置showorigin
为 false:
\documentclass[12pt,pstricks,border=5pt]{standalone}
\usepackage{pst-plot}
\begin{document}
\begin{pspicture}(-7,-1.5)(7,1.5)
\psaxes[Dx=90,dx=\psPiH,xunit=\psPi,xlabelFactor={}^\circ,showorigin=false]{->}(0,0)(-2.2,-1.5)(2.2,1.5)
\psplot[linecolor=red,linewidth=1.5pt,algebraic,plotpoints=100]{-7}{7}{sin(x)}
\end{pspicture}
\end{document}