SVG format plugin for GenIce.
Project description
genice2 4R -f png[shadow:rotatex=2:rotatey=88] > 4R.png
genice2-svg
A GenIce2 plugin to illustrate the structure in SVG (and PNG) format.
version 0.8
Requirements
- svgwrite
- genice2
- pillow
- countrings>=0.1.7
- jinja2
Installation from PyPI
% pip install genice2-svg
Manual Installation
System-wide installation
% make install
Private installation
Copy the files in genice2_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.
arrows Draw the hydrogen bonds with arrows.
shadow=#8881 Draw shadows behind balls.
bg=#f00 Specify the background color.
O=0.06
H=0 Size of the hydrogen atom (relative to that of oxygen)
HB=0.4 Radius of HB relative to that of oxygem
OH=0.5 Radius of OH colvalent bond relative to that of oxygem
width=0 (Pixel)
height=0 (Pixel)
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 (relative to that of oxygen)
O=0.06 Size of the oxygen atom in nm.
HB=0.4 Radius of HB relative to that of oxygen
OH=0.5 Radius of OH colvalent bond relative to that of oxygen
width=0 (Pixel)
height=0 (Pixel)
Test in place
% make test
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
genice2-svg-0.8.tar.gz
(9.3 kB
view details)
Built Distribution
File details
Details for the file genice2-svg-0.8.tar.gz
.
File metadata
- Download URL: genice2-svg-0.8.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbc5b6d784abdd9e9575911908c15030cfda9044bd8bcd8dd29f6112d448a69f |
|
MD5 | 768ae96f3e8bf9a2413ebc75659a0adc |
|
BLAKE2b-256 | 3de4c15fb11b8f4e8b5308ed5e60573d285edc4e33049ed9efa517faaecc4b31 |
File details
Details for the file genice2_svg-0.8-py2.py3-none-any.whl
.
File metadata
- Download URL: genice2_svg-0.8-py2.py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a87f9a80018f009f3a4320ac50e8f0ac663e17fdfd0d1471f31586ce3775ed7 |
|
MD5 | 4c3ecb9bffc65ea88f6593dc0c02a78b |
|
BLAKE2b-256 | dc9dbfa397a829e5d78aa0116d876513cf9985710d60a87020667f9636ca81a5 |