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 2.1.2
Requirements
- svgwrite
- genice2>=2.1b0
- pillow
- cycless
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-2.1.2.tar.gz
(44.9 kB
view details)
Built Distribution
File details
Details for the file genice2-svg-2.1.2.tar.gz
.
File metadata
- Download URL: genice2-svg-2.1.2.tar.gz
- Upload date:
- Size: 44.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce5b534dbd200510af21c82369bf57cc2aa8281d2572e79ef780f8f43fb33645 |
|
MD5 | 743adda013220260043b20d17c6b0208 |
|
BLAKE2b-256 | 2843f74ae3001d4e4d52c26a60e0c4519d1c41df8afb52b69b12b09aaaee6575 |
File details
Details for the file genice2_svg-2.1.2-py2.py3-none-any.whl
.
File metadata
- Download URL: genice2_svg-2.1.2-py2.py3-none-any.whl
- Upload date:
- Size: 28.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91b15810d8fab23ba02015b7c9b0d9534aa9aaf2f636553ae4c691caf2a0e1f7 |
|
MD5 | a5756dd0974246a8c70e29c5e3090818 |
|
BLAKE2b-256 | 0e729161d37741cca3ff922d03a427fdff80225debc60e310b0d5bc87335330a |