There is no reason to change to
Gnuplot. The cause of the error is that you have forgotten the
algebraic option for plot command. Moreover you can't sue the exp expression but you have to use a value for the Euler number.
Code: Select all
\documentclass[11pt,a4paper,english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{babel}
\usepackage{pstricks-add}
\begin{document}
\begin{figure}[!ht]
\centering
\small
\psset{llx=-1.25cm,lly=-1cm,urx=1mm,ury=1mm}
\psset{xAxisLabel={$x$-Axis},xAxisLabelPos={4,-3},yAxisLabel={$y$-Axis},yAxisLabelPos={-3.25,7}}
% \psframebox[linestyle=dashed,linewidth=0.4pt]{%
\begin{psgraph}[Dx=1,Dy=1,Ox=-2,Oy=-1,subticks=5,ticksize=0pt 4pt](-2,-1)(-2,-1)(10,15){10.5cm}{7.5cm}
\psaxes[Dx=1,Dy=1,Ox=-2,Oy=-1,subticks=5,labels=none,ticksize=-4pt 0](10,15)(-2,-1)(10,15)
\psplot[algebraic,linecolor=red]{-1.825}{10}{(1-(4/3)*x+(8/27)*x^2)*2.718^(-(2/3)*x)}
\end{psgraph}
% }
\caption{A nice plot with \textsf{PSTricks}.}\label{fig:pstplot}
\end{figure}
\end{document}
I have used the
psgraph environment to get a better result. The
\psframebox is for checking the right trim values (llx, lly, urx, ury). These and all other options are described in detail in the
pstricks-add manual.
Abandon the
dvips driver for the document class or any other package that could use it. Current versions of those packages detect on their own which compiler is running and then load the right driver.
Best regards
Thorsten¹