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.6.1
Requirements
- svgwrite
- genice<2.0
- pillow
- attrdict
- countrings>=0.1.7
- jinja2
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
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
O=0.06
HB=0.4
OH=0.5
width=0 (Pixel)
height=0 (Pixel)
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.6.1.tar.gz
(8.8 kB
view details)
Built Distribution
File details
Details for the file genice_svg-0.6.1.tar.gz
.
File metadata
- Download URL: genice_svg-0.6.1.tar.gz
- Upload date:
- Size: 8.8 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 | 2c0f3ef3195a7f28a192f1f6b0021e4645eb20c7c62035aa2e383abccabc9691 |
|
MD5 | 74128dcc747eecd55853cd4104cc8b22 |
|
BLAKE2b-256 | f0b396c164bbff0241c83823b0e1f76c149c4b18224ad68042116076a176fb3b |
File details
Details for the file genice_svg-0.6.1-py2.py3-none-any.whl
.
File metadata
- Download URL: genice_svg-0.6.1-py2.py3-none-any.whl
- Upload date:
- Size: 11.3 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 | aa955c588f64e0fe6e7704123c6508c6a118a09d860669e4a1f44d7852136b4a |
|
MD5 | 7b7a117d66aaf93690e592f2a942ebe4 |
|
BLAKE2b-256 | 5a70737ec12d49d517b595c538ce5f7b888830382be8edc5a06e2ff2dbcff178 |