SVG format plugin for GenIce.
Project description
genice 4R -f png[shadow:rotatex=2:rotatey=88] > 4R.png
genice-svg
A GenIce plugin to illustrate the structure in SVG (and PNG) format.
version 0.4.1
Requirements
- svgwrite
- genice>=0.25
- pillow
Installation from PyPI
% pip install genice_svg
Manual Installation
System-wide installation
% make install
Private installation
Copy the files in genice_svg/formats/ into your local formats/ folder.
Usage
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 is a quick alternative for svg. Use png if making svg is too slow.
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
Test in place
% make test
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
genice_svg-0.4.1.tar.gz
(8.2 kB
view details)
Built Distributions
genice_svg-0.4.1-py3.6.egg
(23.5 kB
view details)
File details
Details for the file genice_svg-0.4.1.tar.gz
.
File metadata
- Download URL: genice_svg-0.4.1.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 368416f7b7b99b9a616a3911203924e84d2dd2479bb0dabc554b57eb1ed47e73 |
|
MD5 | 8be48b91a8c5df7eb34fb42405ca329f |
|
BLAKE2b-256 | 1a161d20fa3ec8e473a54cc8ce5c5d97c42425b65ded755fbb45f7c45d76f977 |
File details
Details for the file genice_svg-0.4.1-py3.6.egg
.
File metadata
- Download URL: genice_svg-0.4.1-py3.6.egg
- Upload date:
- Size: 23.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6dad138d24d7a72c8fafc8d808dce9a2c219bfffc5ca7f2c2dbd3d68e6c97543 |
|
MD5 | 1cddba50fe34661fbdd132d8420f48a2 |
|
BLAKE2b-256 | 1718147dadb357c4432dafbf22d2a5e8a72c33d106a3f5863f51d2e1636f1e20 |
File details
Details for the file genice_svg-0.4.1-py2.py3-none-any.whl
.
File metadata
- Download URL: genice_svg-0.4.1-py2.py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31439d47abca3d8ed05b90d871c488f17aec8f64316ec437e8b00f74e5bbf21e |
|
MD5 | b717bd3dca04c763af9902e3c5260609 |
|
BLAKE2b-256 | fc58af2b48c75e083c39be38d926549849a49c62f92f68f94cce1c7bd2541738 |