Banner

Donate

You find LaTeX Community useful? Please donate! Learn why!

Amount:

Partner Sites

goLaTeX
TeXblog
TeXnicCenter

Who is online

In total there are 4 users online :: 1 registered, 0 hidden and 3 guests (based on users active over the past 5 minutes)
Most users ever online was 108 on Tue Jun 08, 2010 3:33 pm

Users browsing this forum: MSN [Bot] and 3 guests

problem with pstricks and \psset

Information and discussion about graphics, figures & tables in LaTeX documents.

problem with pstricks and \psset

Postby tonie on Tue Jun 02, 2009 8:56 am

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 675 times
test1.jpeg
test1.jpeg (235.94 KiB) Viewed 675 times
tonie
 
Posts: 9
Joined: Sat Jan 26, 2008 12:18 pm

Re: problem with pstricks and \psset

Postby Stefan_K on Tue Jun 02, 2009 7:12 pm

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 Community Moderator
TeXblog.net
Stefan_K
Site Moderator
 
Posts: 2687
Joined: Mon Mar 10, 2008 8:44 pm
Location: Hamburg, Germany

Re: problem with pstricks and \psset

Postby tonie on Tue Jun 02, 2009 10:02 pm

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
tonie
 
Posts: 9
Joined: Sat Jan 26, 2008 12:18 pm

Re: problem with pstricks and \psset

Postby Stefan_K on Wed Jun 03, 2009 1:56 pm

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 Community Moderator
TeXblog.net
Stefan_K
Site Moderator
 
Posts: 2687
Joined: Mon Mar 10, 2008 8:44 pm
Location: Hamburg, Germany

Re: problem with pstricks and \psset

Postby tonie on Wed Jun 03, 2009 2:24 pm

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
tonie
 
Posts: 9
Joined: Sat Jan 26, 2008 12:18 pm


Return to Graphics, Figures & Tables

Who is online

Users browsing this forum: MSN [Bot] and 3 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group