genice的svg格式插件。
genice-svg的Python项目详细描述
genice 4R -f png[shadow:rotatex=2:rotatey=88] > 4R.png
genice-svg
一个GenIce插件,以svg(和png)格式说明结构。
版本0.4
要求
- svgwrite
- 精灵=0.25
- 枕头
从PYPI安装
% pip install genice_svg
手动安装
全系统安装
% make install
私人安装
将genice-svg/formats/中的文件复制到本地格式/文件夹中。
用法
Usage:
% genice CS2 -r 3 3 3 -f svg[rotatex=30:shadow] > CS2.svg
Options:
rotatex=30
rotatey=30
rotatez=30
polygon Draw polygons instead of a ball and stick model.
shadow Draw shadows behind balls.
bg=#f00 Specify the background color.
H=0 Size of the hydrogen atom
O=0.06
HB=0.4
OH=0.5
png是svg的快速替代品。如果生成svg太慢,请使用png。
Usage:
% genice CS2 -r 3 3 3 -f png[shadow:bg=#f00] > CS2.png
Options:
rotatex=30
rotatey=30
rotatez=30
shadow Draw shadows behind balls.
bg=#f00 Specify the background color.
H=0 Size of the hydrogen atom
O=0.06
HB=0.4
OH=0.5
就地测试
% make test