I want to put a dot on the beginning of the red line. My code is:


\psset{unit=1.0cm,viewpoint=50 17 20 rtp2xyz,lightsrc=viewpoint,opacity=0.7,grid}
\psSolid[object=courbe,range=0 1.570796327,linewidth=1.5pt,linecolor=red,

What is wrong here?

enter image description here


pst-solides3d and pst-3dplot are incompatible! The first one is a central projection and the other one a parallel projection. Use

\psSolid[object=point,linecolor=red,args=3 0 0]

enter image description here

or rotate the 3d coordinate system also for pst-3dplot. viewpoint is not valid for pstThreeDDot

  • Many thanks, Herbert. I'm now using \psSolid[object=line,linecolor=red,args=3 0 0 3 3 0] to joint two points by a straight line but I also want to put arrows in the end of the line. How can I do it? – Carl Nov 26 '18 at 12:13
  • pst-solides3d has only 3d arrows: \psSolid[object=vecteur, args=1 2 2] For 2d arrows set first two 3d nodes and then \psline{<->}(A)(B) – user2478 Nov 26 '18 at 12:22
  • Ok. Just one last question: I’m also trying to plot vector fields in the plane, namely the vector field $F(x,y) = \frac{\sqrt{2}x}{\sqrt{x^2 + y^2}} \mathbf{i} + \frac{\sqrt{2}y}{\sqrt{x^2 + y^2}} \mathbf{j}$. I used \psVectorfield but I don’t know very well how this command works (the pst-plot-doc pdf manual does not tell much about it). I also know that tikz package is an alternative... – Carl Nov 26 '18 at 12:39
  • ... The problem is I have some other figures in the same picture using PSTricks and I don’t want to convert them to tikz. I’m also aware of the link tug.org/PSTricks/main.cgi but the example presented there (tug.org/PSTricks/main.cgi?file=examples#vector) is not simple... what do you suggest to plot vector fields? There any command in PSTricks? e.g. like “fieldplot” in Maple? – Carl Nov 26 '18 at 12:40
  • \pstVectorfield is a simple 2d vector filed of a given z=f(x,y) and should be easy to use. – user2478 Nov 26 '18 at 12:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.