I just bought a Raspberry Pi 2 and I've just started to use Wolfram Mathematica. I tried to execute one of the examples given in the Wolfram documentations page. The problem that I am facing is that whenever I execute the line of code, I get only the axes(x,y,z) and not the actual 3D plot. Any solutions?

Thank you in advance.

Plot3D[Sin[xy], {x,0,3}, {y,0,3}, ColorFunction -> "Rainbow", Mesh -> None]
  • $\begingroup$ Sounds like Mathematica can't output graphics to your monitor for some reason. I'm not aware of the Pi's limitations but try Export["myplot.png",Plot3D[Sin[xy], {x,0,3}, {y,0,3}, ColorFunction -> "Rainbow", Mesh -> None]] in the meantime. $\endgroup$ – Histograms May 17 '15 at 15:53
  • $\begingroup$ the png file has only the axes and no 3d plot. $\endgroup$ – Vinod Ranganath May 17 '15 at 15:59
  • $\begingroup$ $DisplayFunction returns "Identity" $\endgroup$ – Vinod Ranganath May 17 '15 at 16:00
  • $\begingroup$ by the way, i'm using a samsung led tv as display $\endgroup$ – Vinod Ranganath May 17 '15 at 16:01

It should be Sin[x y], not Sin[xy]. That should solve your problem

  • $\begingroup$ Boom!!! Thanks bro! $\endgroup$ – Vinod Ranganath May 17 '15 at 16:07
  • $\begingroup$ Why not Sin[x*y]? I still use * between the parameters! $\endgroup$ – Vaggelis_Z May 17 '15 at 17:28

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