Hi,

I am trying to retrieve the xy coordinates of an implicit plot, but I
am having trouble. I am able to do this with regular 2d plots without
a problem like this:

p = plot(...)
for r in p:
    X = numpy.array(r.xdata)
    Y = numpy.array(r.ydata)
    ...

With an implicit plot I can retrieve the xy_data_array like this:

ip = implicit_plot(...)
for r in ip:
    XY = val.xy_data_array

but I don't understand how to interpret that data. It is an nxn list
where n is the number of plot points and it seems to depend on x, y,
and the bounding box values. Is there any way I can interpret these
results? Is there any function that converts these to the simple xy
coordinates?

To give context to my question, the purpose of me getting this data is
to perform a transformation on the curve, point by point. For any
implicit function that sage can plot I can to be able to perform my
transformation and view the original and the transformation side by
side.

Thanks in advance for any help you can provide.

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to