[pstricks] psgraph question
McGarry Vince
vmcgarry at austin.rr.com
Sat Dec 10 00:33:20 CET 2005
I may be confused, but I'm sure this used to work, placing the origin
at the default (0,0), doesn't seem to work anymore unless I
explicitly state the origin.
%---------------
\documentclass{minimal}
\listfiles
\usepackage{pstricks}
\usepackage{pstricks-add}
\begin{document}
\def\cubef#1{#1 -5 sub #1 -1 sub #1 6 sub mul mul -1 mul}
\psset{xAxisLabel={$x$},yAxisLabel={$f(x)$}}
\begin{psgraph*}[Dx=1,Dy=40,arrows=->,arrowscale=2](-6.5,-140)
(7.5,140){3in}{2in}
\psplot{-8}{8}{\cubef{x}}
\end{psgraph*}
\end{document}
%---------------
This works now
%---------------
\documentclass{minimal}
\listfiles
\usepackage{pstricks}
\usepackage{pstricks-add}
\begin{document}
\def\cubef#1{#1 -5 sub #1 -1 sub #1 6 sub mul mul -1 mul}
\psset{xAxisLabel={$x$},yAxisLabel={$f(x)$}}
\begin{psgraph*}[Dx=1,Dy=40,arrows=->,arrowscale=2](0,0)(-6.5,-140)
(7.5,140){3in}{2in}
^^^^
\psplot{-8}{8}{\cubef{x}}
\end{psgraph*}
\end{document}
%---------------
*File List*
minimal.cls 2001/05/25 Standard LaTeX minimal class
pstricks.sty 2005/10/07 v0.25 LaTeX wrapper for `PSTricks' (RN,HV)
pstricks.tex 2005/10/30 v1.12a `PSTricks' (tvz)
xcolor.sty 2004/07/04 v2.00 LaTeX color extensions (UK)
color.cfg 2005/02/03 v1.3 color configuration of teTeX/TeXLive
dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
pstricks-add.sty 2005/03/03 package wrapper for pstricks-add.tex (hv)
pstricks-add.tex 2005/11/27 v2.72 `PSTricks-add' (hv)
pst-xkey.tex 2005/02/22 v1.5 PSTricks specialization of xkeyval (HA)
xkeyval.sty 2005/02/22 v2.3 package option processing (HA)
xkeyval.tex 2005/02/22 v2.3 key=value parser (HA)
Vince McGarry
More information about the PSTricks
mailing list