[pstricks] Double arrow and single arrow needed.
Michael Sharpe
msharpe at ucsd.edu
Mon Dec 15 02:54:21 CET 2008
Forgetting about the auto-pst-pdf, try
\documentclass[11pt]{article}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage[dvipsnames,prologue]{pstricks}
\usepackage{pstricks-add}
\begin{document}
\centering
\begin{psgraph}[arrows=->,yAxis=false,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)}
\psaxes[arrows=<->,xAxis=false,yAxis=true](0,0)(0,-1.5)(\psPiTwo,1.5)
\end{psgraph}
\end{document}
The only problem seems to be that showorigin=false is not effective in
this case---may be a bug in psgraph.
Michael
On Dec 14, 2008, at 5:09 PM, David Arnold wrote:
> All,
>
> This doesn't quite so what I want.
>
> \documentclass[11pt]{article}
> \usepackage{amsmath}
> \usepackage{graphicx}
> \usepackage[dvipsnames]{pstricks}
> \usepackage{pstricks-add,auto-pst-pdf}
>
> \PreviewEnvironment{psgraph}
>
> \begin{document}
>
> \begin{center}
> \begin{psgraph}{<->}(0,0)(0,-3)(\psPiTwo,3){0.6\linewidth}{2in}
> \end{psgraph}
> \end{center}
>
> \end{document}
>
> I have a double arrow for both axes, but I want the double arrow for
> the y-axis, but only a right pointing arrow for the x-axis.
>
> Any suggestions?
>
> Thanks.
>
> D.
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
>
More information about the PSTricks
mailing list