请问如何导出RegionPlot图中的轮廓数据
mathematica吧
全部回复
仅看楼主
level 2
cjploop 楼主
各位大神,我想导出RegionPlot的轮廓数据。
如:RegionPlot[{x < y^3 + 1 && y^2 < x^3 + 1}, {x, -2, 5}, {y, -2, 5}]
导出这样的图。现在想要获取轮廓的数据,不知道如何操作。
用listplot,发现在区域内也有数据点
ListPlot[RegionPlot[{x^2 < y^3 + 1 && y^2 < x^3 + 1}, {x, -2,
5}, {y, -2, 5}][[1, 1]]]
先谢谢各位了!
2021年07月26日 12点07分 1
吧务
level 10
ListPlot@MeshCoordinates@BoundaryMesh@DiscretizeRegion@ParametricRegion[{{x,y},x < y^3 + 1 && y^2 < x^3 + 1}, {{x, -2, 5}, {y, -2, 5}}]
2021年07月27日 03点07分 2
刚刚才看到,学到了,完美解决我的问题!非常感谢老哥!
2021年07月29日 05点07分
吧务
level 15
……直接把点从图上挖出来啊,边界线是个Line[…]:
data = Cases[rp // Normal, Line[a_] -> a, Infinity] // First;
data // Line // Graphics
2021年08月07日 02点08分 3
1