Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Mathematica [Mathematica] Plot 3D

Tags:
  1. Sep 25, 2014 #1
    I have a 3D Plot in Mathematica and I would like to get coordinates for points (all points) that were plotted.
     
  2. jcsd
  3. Sep 25, 2014 #2
    Reap[
    Print[Plot3D[x^2 y + y^2 x + 2, {x, -1, 1}, {y, -1, 1}, EvaluationMonitor :> Sow[{x, y, x^2 y + y^2 x + 2}]]]
    ][[2, 1]]

    Note, despite it not being particularly that there is a : followed by > in that.
     
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook