Skip to main content

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

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

Uploaded Source

Built Distribution

genice2_svg-2.1.1-py2.py3-none-any.whl (11.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file genice2-svg-2.1.1.tar.gz.

File metadata

  • Download URL: genice2-svg-2.1.1.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.1rc1

File hashes

Hashes for genice2-svg-2.1.1.tar.gz
Algorithm Hash digest
SHA256 a599effed3623e094718255f052f6d9b3081d76922cf8acee54aa2bea4a6e0e4
MD5 9c1167addc6d58bdc04ccba84601d44d
BLAKE2b-256 b500ba3933b232ea9c88f53ef1a5d3cc49593f79518cb541a3beec8f3785d98a

See more details on using hashes here.

File details

Details for the file genice2_svg-2.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: genice2_svg-2.1.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/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.1rc1

File hashes

Hashes for genice2_svg-2.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e96bca449adc532f7ea0cfb90bbbcef2b5ad532d46ca2105ebcdeacfd7021455
MD5 a4e48e66311f9f287caa6a95ba1258d9
BLAKE2b-256 85053f4b23a15ca2cd408289ae59e4613c51de84d36cee944601417e08557a0c

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