Let's create some points corresponding to a simple closed curve
C0 = ContourPlot[x^2/4 + y^2/9 == 1, {x, -5, 5}, {y, -5, 5}, PlotPoints -> 100];
data = C0[[1, 1]];
S0 = ListPlot[data, PlotStyle -> {Blue, PointSize[0.005]}]
Now I would like to find the intersection points with the two axes. In this example the solutions should be $x = \pm 2$ and $y = \pm 3$.
IMPORTANT NOTE: The real data file corresponds to a closed curve with unknown analytical equation, so in the suggested solution you should not take into account the equation of the ellipse, only data
is known.
Many thanks in advance.
C0[[1, 1]]
works for extracting points in old versions, but not in the new ones. $\endgroup$C0[[1,1]]
works just fine in v10.3: it extracts the actual coordinates of the points from theGraphicsComplex
generated byContourPlot
. $\endgroup$