kunpeng9 / GTD2020-05-31

2020-05-31创建【将github的项目链接等放入滴答清单进行管理或者印象笔记等,实践证明都不可行,不好用,完全被搁置了】
The Unlicense
26 stars 5 forks source link

swarma/thebrain2dot: thebrain10 .json to .dot visualization (Graphviz) #64

Open kunpeng9 opened 3 years ago

kunpeng9 commented 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

使用 Graphviz 将 brain10. JSON (File> Export > JSON Files) 导入到. dot visualization

Before:

以前:

After:

之后:

More Complicated Example:

更复杂的例子:

API 空气污染指数

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

这个函数将输出两个. dot 文件 + . png 文件) ,推荐的. dot 工具: MS Code + Graphviz Interactive Preview

Dependency 依赖

Graphviz

Ubuntu:

Windows: TODO

窗口: TODO

Pygraphviz

Ubuntu:

apt-get install -y graphviz-dev
pip install pygraphviz

Windows: TODO

窗口: TODO

Chinese Fonts (If Chinese is not correctly shown in the visualization) 中文字体 (如果显示的中文不正确)

Ubuntu:

apt-get install -y fonts-wqy-microhei

TODO 待办事项