FindCurvePath[{{x1,y1},{x2,y2},…}]
gives an ordering of the {xi,yi} that corresponds to one or more smooth curves.
FindCurvePath
FindCurvePath[{{x1,y1},{x2,y2},…}]
gives an ordering of the {xi,yi} that corresponds to one or more smooth curves.
Details
- FindCurvePath attempts to reconstruct smooth curves defined by sets of points.
- FindCurvePath gives a list of one or more connected curves, each specified by a disjoint subset of the {xi,yi}.
Examples
Basic Examples (1)
Randomly select points on a circle:
list = Table[{Cos[t], Sin[t]}, {t, RandomReal[{0, 2Pi}, 20]}];ListLinePlot[list, AspectRatio -> Automatic]Find ordering to form a possibly smooth curve:
curve = FindCurvePath[list]Plot a line through rearranged points:
ListLinePlot[list[[curve[[1]]]], AspectRatio -> Automatic]Related Guides
History
Text
Wolfram Research (2008), FindCurvePath, Wolfram Language function, https://reference.wolfram.com/language/ref/FindCurvePath.html.
CMS
Wolfram Language. 2008. "FindCurvePath." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/FindCurvePath.html.
APA
Wolfram Language. (2008). FindCurvePath. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FindCurvePath.html
BibTeX
@misc{reference.wolfram_2026_findcurvepath, author="Wolfram Research", title="{FindCurvePath}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/FindCurvePath.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_findcurvepath, organization={Wolfram Research}, title={FindCurvePath}, year={2008}, url={https://reference.wolfram.com/language/ref/FindCurvePath.html}, note=[Accessed: 12-June-2026]}