pts=Cases[theplot, x_GraphicsType:>First@x, Infinity];
Example 1:
g=Plot[Sin[x],{x,0,2Pi}];
pts=Cases[g,x_Line:>First@x,Infinity];
ListPlot[pts]
Example 2:
g=Plot3D[Cos[x]+Cos[y],{x,0,4Pi},{y,0,4Pi}];
pts=Cases[g,x_GraphicsComplex:>First@x,Infinity];
ListPointPlot3D[pts]
2 comments:
Thank you for this post. This is really useful! I need this ability for my Math Modeling class...
This was lovely tto read
Post a Comment