Graphics, Figures & Tablesproblem with pstricks and \psset

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
tonie
Posts: 9
Joined: Sat Jan 26, 2008 1:18 pm

problem with pstricks and \psset

Post by tonie »

Hello,
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}
Attachments
test2.jpeg
test2.jpeg (73.97 KiB) Viewed 8829 times
test1.jpeg
test1.jpeg (235.94 KiB) Viewed 8829 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Re: problem with pstricks and \psset

Post by Stefan Kottwitz »

Hi Tonie,

does this example code produce that error? I could compile it without any error. Either the code is different or a pstricks package version could cause a problem, an update could help then.

Stefan
LaTeX.org admin
tonie
Posts: 9
Joined: Sat Jan 26, 2008 1:18 pm

Re: problem with pstricks and \psset

Post by tonie »

Hey Stefan_K,
thanks for reply...Right now, it is not working...
I was desperated today. Therefore, I uninstalled both texnicenter and miktex. Afterwards, I reinstalled both packages. After installation of Miktex and Texnicenter I was able to execute my file (I have mentioned in the thread), too. BUT, in order to use the most recently updated packages I started the Miktex Update assistent. The update made my result bad and me mad, I got again the strange *(1,1)* notation...
Does anybody has similiar problems after updating his Miktex? I tried different examples from the website http://tug.org/PSTricks/main.cgi?file=p ... D/examples but most failed (I could compile but I got this bad notation)...

Besides, does anybody know whether there are problems between the documentclass "memoir" and "pstricks" (and its subpackagges)?

Many thanks,
Tonie
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

problem with pstricks and \psset

Post by Stefan Kottwitz »

Hi Tonie,

I can see you're using pstricks-add v3.32. Version 3.34 has been released some days ago and contains a bugfix for \pstScalePoints. Because your error message is raised by this macro I'm expecting that updating pstricks-add will solve your problem. You could update manually or just wait some days until the MiKTeX pstricks-add package has been updated too.

Stefan
LaTeX.org admin
tonie
Posts: 9
Joined: Sat Jan 26, 2008 1:18 pm

problem with pstricks and \psset

Post by tonie »

Cheers Stefan_K,
u're right... I could download an updated version of "pstricks-add" couple of minutes ago... It was really a pain. Since saturday I tried to find out my error...

Anyway, there is one remaining question: I draw a coordinate system whose z-axis points downwoards.
However, the axis name (it is "z" by default) is directly plotted on the z-axis. Basically there is no space between name and axis. That looks really bad. The notation of x-axis and y-axis is okay. If my z-axis points upwards, there is as well space between axis and name of the axis.
Any suggestions? Here is my code

Code: Select all

\documentclass[a4paper]{article}
\usepackage{pst-3dplot}
\begin{document}
\begin{center}
\psset{unit=0.7,Alpha=75}
\begin{pspicture}(-11,-11)(5,5)
\pstThreeDCoor[linewidth=1.3pt, linecolor=black, xMin=-1, xMax=7, yMin=-1, yMax=7, zMin=1, zMax=-7]
\end{pspicture}
\end{center}
\end{document}
Many thanks again to Stefan_K
Post Reply