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.6

Requirements

  • svgwrite
  • genice>=0.25
  • 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


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

Uploaded Source

Built Distribution

genice_svg-0.6-py2.py3-none-any.whl (11.7 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

Hashes for genice_svg-0.6.tar.gz
Algorithm Hash digest
SHA256 4ba17c1f1b333120ea205123a6879a56794d98a6cbb3e049d4ef7a553b0cf7e3
MD5 f1c6d0f902e2ba7e1ebd81d948d5981f
BLAKE2b-256 b7a85c178e73a461b8af578d54ee5fd32322cdf4cc0ddb68e93e77ed69e3e602

See more details on using hashes here.

File details

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

File metadata

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

Hashes for genice_svg-0.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a0d84ba4f0f4383d1d9911860a93c72c76f4b401212d0fd7218a8db4036c26aa
MD5 3ed73c4cc4111c945ee3750ff40d3146
BLAKE2b-256 b31108af20810bc223de8f298ae9f70e3776ad327a1dcabbc9bf63fe5dbfdb83

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