PSTricks plot with trigonometric axes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
\documentclass[11pt]{article}
\usepackage{pstricks-add}
\pagestyle{empty}
\begin{document}
\setcounter{figure}{2}
\begin{figure}[h]
\centering
\begin{psgraph}[trigLabels,arrows=->](0,0)(-1,-1.5)(4,1.5){.5\textwidth}{!}
\psgrid[gridcolor=gray,gridlabels=0,subgriddiv=2,griddots=2,subgriddots=5](-1,-1.5)(4,1.4)
\psplot[plotpoints=500,algebraic]{-0.75}{3.5}{sin(x*\psPiH)*cos(20*x*\psPiH)}
\end{psgraph}
\caption{plot with trigonometric labels}\label{plt:trig}
\end{figure}
\end{document}