I can compile my .tex domuments when I plot graphs with pstricks without any problems. By the way, I am using texniccenter.
However, if I us the command \psset my document can be compiled, but I get two error messages and my document (either dvi, ps or pdf) contains a strange notation: (1,1)
I have attached plot and my error.
Does anybody know this problem?
Besides, my 'z' of the z-coordinate is plotted directly on my z-axis. How can I rearrange it a bit lower?
Many thanks and help appreciated.
Here is my code
Code: Select all
documentclass[a4paper]{article}
\usepackage{pst-3dplot}
\begin{document}
\psset{unit=1cm,Alpha=75}
\begin{pspicture}(-5,-5)(3,3)
\pstThreeDCoor[xMax=7,yMax=7, zMin=1, zMax=-7]
\pstThreeDLine[SphericalCoor,linecolor=blue]{->}(0,0,0)(10,45,-60)
\pstThreeDDot[SphericalCoor,drawCoor](10,45,-60)
\pstThreeDPut[SphericalCoor](10.5,45,-65){$(x,y,z)$}
\pstThreeDNode[SphericalCoor](5,45,-60){A}\pstThreeDNode(0,0,-5){B}
\ncarc[arcangle=20]{->}{A}{B}
\pstThreeDPut[SphericalCoor](4,45,-70){$\phi$}
\pstThreeDNode[SphericalCoor](2,45,0){B}\pstThreeDNode(2,0,0){A}
\ncarc[angleA=180]{<-}{B}{A}
\pstThreeDLine[SphericalCoor,linestyle=dashed](0,0,0)(5,45,0)
\pstThreeDPut[SphericalCoor](2.5,25,0){$\theta$}
\pstThreeDPut[SphericalCoor](6,45,-50){$r$}
\end{pspicture}
\end{document}