Plot 3D in Mathematica: Getting Coordinates for Points

  • Context: Mathematica 
  • Thread starter Thread starter gaby287
  • Start date Start date
  • Tags Tags
    3d Mathematica Plot
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 2K views
gaby287
Messages
14
Reaction score
0
I have a 3D Plot in Mathematica and I would like to get coordinates for points (all points) that were plotted.
 
Physics news on Phys.org
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.