# [pstricks] psgraph and trig functions

Michael Sharpe msharpe at ucsd.edu
Mon Dec 15 02:43:00 CET 2008

\documentclass[11pt]{article}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage[dvipsnames,prologue]{pstricks}
\usepackage{pstricks-add}

\begin{document}

\centering
\begin{psgraph}[arrows=->,trigLabels=true,showorigin=false](0,0)
(0,-1.5)(\psPiTwo,1.5){6cm}{3cm}
\psplot[linecolor=red,linewidth=1pt,algebraic]{0}{\psPiTwo}{sin(x)
+0.5*sin(2*x)}
\end{psgraph}
\end{document}

As far as I know, trigLabels=true is the only way to generate trig
labels automatically.

Michael

On Dec 14, 2008, at 4:34 PM, David Arnold wrote:

> All,
>
> Does anyone have any example code that uses psgraph and triglabels
> that they would be willing to share? Do folks out there actually use
> the trigLabels=true option explained in the pstricks-add manual or is
> there another preferred method of choice?



More information about the PSTricks mailing list