I'm new to pstricks. I was looking for an automatic way of resizing a plot.
I'm trying to fit a 3d plot, generated using pst-3dplot, into a beamer frame. However, I'm not able to make it look good automatically.
If I set some frame coordinates to the pspicture then just a part of the plot appears. And if I set no coordintaes, then there is no plot. I also try using \psset(unit=1mm) but it compresses the plot and doesn't look good. Is there a way to figure it out without having to recompile hundreads of times? Is there a way to make it resize automatically to the frame size?
This is an example of what I'm doing:
\documentclass{beamer}
% For the figures
\usepackage[pdf]{pstricks}
\usepackage{auto-pst-pdf}
\usepackage{pst-node, pst-plot, pst-circ, pst-3dplot}
\usepackage{moredefs}
\begin{document}
\begin{frame}{3D}
\begin{center}
\begin{pspicture}%(-5,3)(5,-3)%<-uncomment this and just a part appears
\pstThreeDCoor[linecolor=black, IIIDticks,IIIDlabels,xMin=-20,xMax=20,yMin=-20, yMax=20,zMin=0,zMax=35]
\fileplotThreeD[linecolor=blue,plotstyle=line]{data.txt}
\end{pspicture}
\end{center}
\end{frame}
\end{document}
The data.txt file is here
\resizebox. – Marco Daniel Oct 29 '11 at 10:47