currently I tried to handle two pspictures in subfigures. I would like to have them next to each other. However, it does not work properly. Right now, Latex compiles it and arrange my pspicture among each others Do you know whether there are any problems between pstricks and subfigure?
Here is my simple code:
Code: Select all
\documentclass[twoside,a4paper,11pt]{document}
\usepackage{pstricks-add}
\usepackage{pst-coil}
\usepackage{pst-node}
\usepackage{subfigure}
\begin{document}
\begin{figure}[ht]
\centering
\subfigure[test2]{
\psset{unit=0.5cm}
\begin{pspicture}(-0.5,-1.25)(5,1.25)
\cnode(0.5,0.5){0.5}{A}
\cnode[fillstyle=solid,fillcolor=lightgray](3.5,2.5){0.5}{B}
\nccoil[coilwidth=0.3]{<->}{A}{B}
\end{pspicture}
\label{fig:subfig2}
}
\subfigure[test1]{
\psset{unit=0.5cm}
\begin{pspicture}(-0.5,-1.25)(10,1.25)
\psplot[linecolor=blue,linewidth=1.5pt,plotpoints=500] {0}{5.424}{ x dup add RadtoDeg sin }
\psaxes[xunit=0.785,showorigin=false, trigLabels]{->}(0,0)(-1,-1.25)(7.8,1.25)
\end{pspicture}
\label{fig:comwa}
}
\label{fig:bliblablup}
\caption{test1 und test2}
\end{figure}
\end{document}