Skip to main content

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

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


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.5.tar.gz (8.4 kB view details)

Uploaded Source

Built Distributions

genice_svg-0.5-py3.6.egg (24.1 kB view details)

Uploaded Source

genice_svg-0.5-py2.py3-none-any.whl (11.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file genice_svg-0.5.tar.gz.

File metadata

  • Download URL: genice_svg-0.5.tar.gz
  • Upload date:
  • Size: 8.4 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

Hashes for genice_svg-0.5.tar.gz
Algorithm Hash digest
SHA256 854cc8ec6eb763ef900329807f2b7e830a6334c5f71569b24767b8e06b7d2b27
MD5 c2cd2df1cdb77b8512c41be5f5706df3
BLAKE2b-256 242a3a21f713c0186e28cfba77edfc54b723e82bd459234838929baca377b43b

See more details on using hashes here.

File details

Details for the file genice_svg-0.5-py3.6.egg.

File metadata

  • Download URL: genice_svg-0.5-py3.6.egg
  • Upload date:
  • Size: 24.1 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

Hashes for genice_svg-0.5-py3.6.egg
Algorithm Hash digest
SHA256 bbc3ab27a5dac834e64f97bb1596adc37a19d02535da5774d05e68ca5aaa6466
MD5 07778083bfed8dbcbca600bc7deb431a
BLAKE2b-256 8db54d4a191985b96a49b61c2e9a7fadf93aaea0c12b873e91cd0a1ccea83c1b

See more details on using hashes here.

File details

Details for the file genice_svg-0.5-py2.py3-none-any.whl.

File metadata

  • Download URL: genice_svg-0.5-py2.py3-none-any.whl
  • Upload date:
  • Size: 11.3 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

Hashes for genice_svg-0.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 06bd658cdc1c1b7e34a0abed512c7fe2bb850a7d43be6383314b802f06aa1609
MD5 52934a4e56ee4a27f904102e77a105b7
BLAKE2b-256 85e74481a2fd7b72ebb2783706c9a5b9d75a506d484862dd736864721c553e75

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page