Skip to main content

genice2 4R -f svg[shadow:rotatex=2:rotatey=88] > 4R.svg

Logo

genice2-svg

A GenIce2 plugin to illustrate the structure in SVG (and PNG) format.

version 2.4.1

Requirements

  • python^3.9
  • numpy^1.26.4
  • genice2>=2.2
  • svgwrite>=1.4.3
  • pillow*

Installation from PyPI

% pip install genice2-svg

Manual Installation

System-wide installation

% make install

Private installation

Copy the files in /formats/ into your local formats/ folder.

Usage

Usage:
    % genice2 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)
    margin=0       (Pixel)

Png is a quick alternative for svg. Use png if making svg is too slow.

Usage:
    % genice2 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

Metadata

Release files for genice2-svg 2.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for genice2-svg 2.4.1
File Size Uploaded
genice2_svg-2.4.1.tar.gz 86.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for genice2-svg 2.4.1
File Interpreter ABI Platform
genice2_svg-2.4.1-py3-none-any.whl Python 3 none any Details

Total release size: 137.7 kB

Release files / genice2_svg-2.4.1.tar.gz

Download URL genice2_svg-2.4.1.tar.gz
Size 86.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9349f5a2612a7de4e0e6efef65c1b038a8fa983cb377be7e25039b4d5aee312d
BLAKE2b-256 checksum
How to use checksums
064175bc2f5ac26f90b722c2401dcef69bdff231e61bb3ba6740b9decc572526
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.11.4 Darwin/23.2.0

Release files / genice2_svg-2.4.1-py3-none-any.whl

Download URL genice2_svg-2.4.1-py3-none-any.whl
Size 50.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8bbae717b7308ac9b8c3413d41a340756df81e1c1284aa99cc09a03ae08c26ec
BLAKE2b-256 checksum
How to use checksums
d25edc0f00913bed0ed73b3913039c229ec5cea7ceb2c8f0e4fffbcd9ef09bdf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.11.4 Darwin/23.2.0

Release history Release notifications | RSS feed

This release

2.4.1 This release

2 release files

2.2

2 release files

2.1.2

2 release files

2.1.1

2 release files

2.1

2 release files

2.0

2 release files

0.8

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page