After years of searching and often also finding answers to my LaTeX problems I have decided to finally register to a forum. HELLO ALL!
My first topic is about plotting with psgraph.
I have the following code:
Code: Select all
\documentclass[12pt,a4paper]{article}
\usepackage{pstricks} % Graphics package for plots
\usepackage{pst-all} % Graphics package for plots
\usepackage{pstricks-add} % Graphics package for plots
\begin{document}
\begin{figure}[h!]
\begin{center}
\begin{psgraph}[axesstyle=frame, Dx=1, Dy=0.1, xsubticks=5, ysubticks=5](0.,0.)(-6.,0.)(6.,1.4){0.9\linewidth}{6cm}
\end{psgraph}
\caption{First Variable $z1$}
\end{center}
\end{figure}
\end{document}
\begin{psgraph}[axesstyle=frame, Dx=1, Dy=0.1, xsubticks=5, ysubticks=5](0.,0.)(-6.,0.)(6.,1.4){0.9\linewidth}{6cm}
I want to plot to y=1.4 which works but in the "bl" corner you can see ".4" which is not there when I choose y to be an integer, so it must origin form there.
When I set y to eg. 0.4 I can't even compile it. I get:
How can I solve this problem?! Arithmetic overflow.
<to be read again>
.
l.159 ....,0.)(-6.,0.)(6.,0.4){0.9\linewidth}{6cm}
I can't carry out that multiplication or division,
since the result is out of range.
Thanks