I have a lot of problems trying to position my pictures with pstricks. I wish to place two graphs next to each other, and by googling I found out I could do that using minipage. But still, I don't really understand what is happening with them. They seem to somehow start at zero, but then they extend up beyond the page for some reason. And if I change the axes setting, the only thing that happens is that they are cut off instead.
My code for the two figures:
Code: Select all
\begin{figure}[!ht]
\begin{minipage}{0.5\textwidth}
\centering
\begin{pspicture}(4,4)
\psset{xunit=4cm,yunit=20cm}
\listplot[linecolor=green]{\naeighteen}
\listplot[linecolor=blue]{\nathirty}
\listplot[linecolor=black]{\naforty}
\listplot[linecolor=red]{\nafifty}
\psaxes[axesstyle=frame,linewidth=0.5pt,Dx=0.2,Dy=0.05,Ox=0.0,Oy=0.0]{->}(0.02,0)(1,0.2)
\end{pspicture}
\end{minipage}
\begin{minipage}{0.5\textwidth}
\centering
\begin{pspicture}(4,4)
\psset{xunit=4cm,yunit=0.8cm}
\listplot[linecolor=green]{\naeighteen}
\listplot[linecolor=blue]{\nathirty}
\listplot[linecolor=black]{\naforty}
\listplot[linecolor=red]{\nafifty}
\psaxes[axesstyle=frame,linewidth=0.5pt,Dx=0.2,Dy=1,Ox=0.0,Oy=20]{->}(0.02,0)(1,5)
\end{pspicture}
\end{minipage}
\label{chemical_concentrations}
\end{figure}
Thanks,
Björn