Open kunpeng9 opened 3 years ago
This branch is 9 commits behind simoncos:master. 这个分支是 9 条在 simoncos 后面提交的: master
TheBrain10 .json (File>Export>JSON Files ) to .dot visualization with Graphviz
.json
.dot
使用 Graphviz 将 brain10. JSON (File> Export > JSON Files) 导入到. dot visualization
thoughts.json
links.json
Before:
以前:
After:
之后:
More Complicated Example:
更复杂的例子:
Example: see test/test.py
示例: 参见 test/test.py
brain_json2dot(thoughts_path, links_path, dot_path='thebrain.dot', png_path='thebrain.png', layout='dot', bg_color='grey22', node_shape='circle', node_color='white', edge_default_color='white', edge_splines='', edge_font_size=10)
The Function will output both .dot file + .png file), recommended Tool for .dot: MS Code + Graphviz Interactive Preview
.png
这个函数将输出两个. dot 文件 + . png 文件) ,推荐的. dot 工具: MS Code + Graphviz Interactive Preview
Ubuntu:
Windows: TODO
窗口: TODO
apt-get install -y graphviz-dev pip install pygraphviz
apt-get install -y fonts-wqy-microhei
This branch is 9 commits behind simoncos:master. 这个分支是 9 条在 simoncos 后面提交的: master
TheBrain10
.json
(File>Export>JSON Files ) to.dot
visualization with Graphviz使用 Graphviz 将 brain10. JSON (File> Export > JSON Files) 导入到. dot visualization
thoughts.json
)links.json
)Before:
以前:
After:
之后:
More Complicated Example:
更复杂的例子:
API 空气污染指数
Example: see test/test.py
示例: 参见 test/test.py
The Function will output both
.dot
file +.png
file), recommended Tool for.dot
: MS Code + Graphviz Interactive Preview这个函数将输出两个. dot 文件 + . png 文件) ,推荐的. dot 工具: MS Code + Graphviz Interactive Preview
Dependency 依赖
Graphviz
Ubuntu:
Windows: TODO
窗口: TODO
Pygraphviz
Ubuntu:
Windows: TODO
窗口: TODO
Chinese Fonts (If Chinese is not correctly shown in the visualization) 中文字体 (如果显示的中文不正确)
Ubuntu:
TODO 待办事项
thoughts.json
&links.json