Example file from here:




  xMin = -4,
  xMax = 4,
  yMin = -4,
  yMax = 4,
  zMax = 3,
  arrows = <->
  plotstyle = line,
  linecolor = blue,
  yPlotpoints = 40,
  xPlotpoints = 30,
  linewidth = 0.5pt,
  hiddenLine = true
{x 100 mul cos y 100 mul sin sub}
\rput(0,3.5){$f(x,y) = \cos(100x) - \sin(100y)$}




I'm using Latex to produce DVI output.

Any ideas what might go wrong here?

EDIT: The example above seems to work with xelatex. However, consider the following:

\pstThreeDCoor[linecolor=black, IIIDlabels, IIIDticks, xMin=-1,xMax=5,yMin=-1,yMax=5,zMin=-1,zMax=5]%

xelatex compiles this into: trash

EDIT2: See solution here SOLUTION: Use latex-> dvi2ps -> ps2pdf (if you need pdf)

EDIT3: Could anyone pls recommend me another 3d plot package?

  • 1
    No idea, but your code works fine with xelatex. – Bernard Jan 8 '19 at 17:55
  • For the second example: there is a problem with the xdvipdfmx driver. I'll have a look at it. Using auto-pst-pdf works fine. – user2478 Jan 9 '19 at 14:37

You viewed the dvi output! That cannot show graphical elements or rotations. Use the pdf output for the viewer.

latex->dvips->ps2pdf or xelatexorpdflatexwith packageauto-pst-pdf`

See "Frequently Done Errors" No 4 on http://tug.org/PSTricks

  • this particular example works fine with xelatex, however, the other simple example results in a complete mess (see my edit). BTW: pdflatex with auto-pst-pdf doens't work at all. At it does is just printing the source code into the pdf. – OD IUM Jan 9 '19 at 9:27
  • I am using auto-PST-pdf for more than 10 years and never had a problem – user2478 Jan 9 '19 at 14:30

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.