Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Get list of coordinates from plot object

I'm looking for a way to get a plain list of coordinates from a plot object. For instance, after creating an implicit plot of a circle

p = implicit_plot(x^2+y^2-1,(x,-2,2),(y,-2,2))

I am able to save the image in .pdf or even .svg format (where coordinates are present), which is a very good start. What I really want, though, is a plain list of coordinates of, say, 2000 points lying on that circle. It should be possible to extract some from the .svg file, but is there a more convenient method? Maybe even one where I can set the sample size?

Thank you in advance for any suggestions.