math - 在 Mathematica 中生成拓扑空间图

标签 math graphics wolfram-mathematica

我有 mathematica 代码来检查集合的集合是否满足拓扑的定义,我现在想以编程方式生成如下图:
topological spaces

如何才能做到这一点?

最佳答案

我不熟悉你的问题,但要从图元创建图,看起来有点像你粘贴的图,你可以这样做:

从“基本”案例开始——

base = {Circle[{-0.4, 0.4}, 0.1], Disk[{0, .125}, 0.05], 
   Text[Style["1", 24], {0, -0.1}],
   Disk[{0.5, .125}, 0.05], Text[Style["2", 24], {0.5, -0.1}], 
   Disk[{1., .125}, 0.05], Text[Style["3", 24], {1., -0.1}], 
   Circle[{.5, 0}, {.9, .5}]};

Graphics[{base}, ImageSize -> 220]

enter image description here

从这里开始向基本案例添加省略号:
Graphics[{base, Circle[{0, 0}, {.15, .3}]}, ImageSize -> 220]

enter image description here
Graphics[{base, Circle[{0, 0}, {.15, .3}], 
  Circle[{0.5, 0}, {.15, .3}], Circle[{0.25, 0}, {.58, .38}]}, 
 ImageSize -> 220]

enter image description here
Graphics[{base, Circle[{0.5, 0}, {.15, .3}], 
  Circle[{0.25, 0}, {.58, .38}], Circle[{0.75, 0}, {.58, .38}]}, 
 ImageSize -> 220]

enter image description here
Graphics[{base, Circle[{0.5, 0}, {.15, .3}], 
  Circle[{1, 0}, {.15, .3}], Red, AbsoluteThickness[6], 
  Line[{{-0.4, -0.5}, {1.4, 0.55}}], 
  Line[{{-0.4, 0.55}, {1.4, -0.5}}]}, ImageSize -> 220]

enter image description here
Graphics[{base, Circle[{0.25, 0}, {.58, .38}], 
  Circle[{0.75, 0}, {.58, .38}], Red, AbsoluteThickness[6], 
  Line[{{-0.4, -0.5}, {1.4, 0.55}}], 
  Line[{{-0.4, 0.55}, {1.4, -0.5}}]}, ImageSize -> 220]

enter image description here

请注意,我在调整这些时设置了 Frame->True 以便我可以看到坐标。

关于math - 在 Mathematica 中生成拓扑空间图,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8814059/

相关文章:

java - Project Euler 20,有人能告诉我为什么我的输出不正确吗?

java - 优化代码以获取给定范围内可被整数整除的整数个数

android - 在android中关闭屏幕绘图

c++ - glutIdleFunc 不调用空闲函数

平滑曲线同时保持曲线下方面积不变的算法

python - log(x) 的泰勒级数

wolfram-mathematica - 给定整数约束在 Mathematica 中简化积分结果的正确方法

python - 我可以从 Mathematica 执行远程 python 脚本吗?

C++ WinApi 将图像.jpg 绘制到新窗口?

Mathematica 中的函数类型声明