1 | initial version |
You can try:
sage: P = implicit_plot(x^2+y^2-2, (x,-3,3), (y,-3,3))
sage: C = P._objects[0]
sage: C
ContourPlot defined by a 150 x 150 data grid
sage: C.xy_data_array
You will get a list of lists, giving evaluated values of the function on the grid line by line (of row by row i didn't check further).
Then you get the points by looking at sign changes, or values close to zero.
2 | No.2 Revision |
You can try:
sage: P = implicit_plot(x^2+y^2-2, (x,-3,3), (y,-3,3))
sage: C = P._objects[0]
sage: C
ContourPlot defined by a 150 x 150 data grid
sage: C.xy_data_array
You will get a list of lists, giving evaluated values of the function on the grid line by line (of row by row (or column by column, i didn't check further).
Then you get the points by looking at sign changes, or values close to zero.