Trying to use pst-plot package (tlmgr info pst-plot reports it of version 1.44).
Code: Select all
\documentclass{article}
\usepackage{pst-plot}
\begin{document}
\psset{unit=1cm}
\begin{pspicture}(-4,-0.5)(4,8)
\psgrid[subgriddiv=0,griddots=5,gridlabels=7pt](-4,-0.5)(4,8)
\psline[linewidth=1pt]{->}(-4,0)(+4,0) % line #7, error: undefined \psline
\psline[linewidth=1pt]{->}(0,-0.5)(0,8)
\psplot[plotstyle=curve,linewidth=1.5pt]{-4}{0.9}{10 x exp}% postscript function
\rput[l](1,7.5){$10^x$}
\end{pspicture}
\end{document}
Code: Select all
! Undefined control sequence.
<recently read> \c@lor@to@ps
l.7 \psline
[linewidth=1pt]{->}(-4,0)(+4,0)
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
\XC@usec@lor ...string \color@ #1#2\endcsname \@@
\fi \space
l.7 \psline
[linewidth=1pt]{->}(-4,0)(+4,0)
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
What am I doing wrong?