pspicture issues

pspicture issues

by Jorge Aldana -
Number of replies: 1

Hi I've been trying to solve the following issue for weeks and I can't. I wonder if anyone has had a similar problem: the first works well, the second does display but with a lot of space above and below, and the third only shows the number labels but no lines nor axes. (note that I don't put space between $ signs)

1.) $ $ \psset{unit=1pc}
\begin{pspicture*}(-5,-5)(5,5)
\psgrid[subgriddiv=0,gridlabels=0,gridcolor=lightgray](0,0)(-5,-5)(5,5)
\psset{algebraic=true,dotstyle=*,dotsize=3pt 0,linewidth=0.8pt,arrowsize=3pt 2,arrowinset=0.25}
\renewcommand{\pshlabel}[1]{\tiny #1}
\renewcommand{\psvlabel}[1]{\tiny #1}
\psaxes[xAxis=true,yAxis=true,Dx=1,Dy=1,ticksize=-2pt 0,subticks=2]{<->}(0,0)(-5,-5)(5,5)
\psplot[plotpoints=200]{-2}{2}{1*x^2}
\end{pspicture*}  $ $

2.) $ $\psset{unit=1pc}
\begin{pspicture*}(-2,-1)(2,1)
\psline[linewidth=2pt,linecolor=red](-2,0)(2,0)
\end{pspicture*} $ $

3.) $ $\psset{unit=1pc}
\begin{pspicture*}(-3,-2)(10,2)
\renewcommand{\pshlabel}[1]{{\tiny #1}}
\renewcommand{\psvlabel}[1]{{\tiny #1}}
\psaxes[yAxis=false]{<->}(0, 0)(-3,0)(10,0.1)
\psline[linewidth=1.2pt,linecolor=black]{o->}(7,0.5)(10,0.5)
\end{pspicture*} $ $

Average of ratings: -