chronotva


Namechronotva JSON
Version 1.0.1 PyPI version JSON
download
home_page
SummaryChronoTVA (The Chronomancer's Tesseract Visualization Aid) is a Python 3.9+ command-line tool designed for generating images from three-dimensional coordinates of all possible unfoldings of a tesseract (hypercube).
upload_time2023-11-19 20:33:59
maintainer
docs_urlNone
author
requires_python>=3.9
license
keywords tesseract visualization aid unfoldings isomorphism matplotlib oop
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # ChronoTVA

## Table of Contents
- [Overview](#overview)
- [Features](#features)
- [Requirements](#requirements)
- [Installation](#installation)
- [Usage](#usage)
- [Command-Line Arguments](#command-line-arguments)
  - [Image Size](#image-size)
- [Examples](#examples)
  - [Default Parameters](#default-parameters)
  - [Custom Colors and Output Format](#custom-colors-and-output-format)
  - [Adjusting View Angles](#adjusting-view-angles)
  - [High-Resolution Output](#high-resolution-output)
  - [Image Size in Pixels](#image-size-in-pixels)
  - [Image Size in Inches](#image-size-in-inches)
  - [Selective Unfolding and Axis Display](#selective-unfolding-and-axis-display)
  - [Custom Output Directory](#custom-output-directory)
  - [Combination of Various Options](#combination-of-various-options)
  - [Full Customization](#full-customization)
- [Further Reading](#further-reading)
  - [Embeddings](#embeddings)
- [License](#license)
- [Contact](#contact)

## Overview
<p align="center">
  <img src="tesseract.svg" width=25%>
</p>

ChronoTVA (The **Chrono**mancer's **T**esseract **V**isualization **A**id) is a Python 3.9+ command-line tool designed for generating images from three-dimensional coordinates of unfoldings of a tesseract.

This has been tested with Python **3.9**, **3.10**, **3.11**, and **3.12**. The only dependency is **matplotlib**.

For more information on the unfolding process, please read the [Further Reading](#further-reading) section.

## Features

- **Color Customization**: Customize block and edge colors using RGBA format or named colors.
- **View Angle Adjustment**: Set elevation and azimuth angles for 3D plot perspective.
- **Output Format Options**: Generate images in PNG, SVG, or PDF format.
- **Image Dimensions & DPI**: Control the dimensions and resolution (DPI) of the output image.
- **Transparency and Shading**: Option to enable transparency and shading in the plot.
- **Axis Display**: Toggle the display of axes in the plot.
- **Automatic Output Directory Management**: Saves plots to a specified directory or creates a default one based on the current date and time.
- **Selective Unfolding ID Plotting**: Plot specific unfoldings by providing their numeric identifiers.
- **Whitespace Removal**: Automatically remove whitespace around the image.
- **Flexible Dimension Specifications**: Set image dimensions either in pixels or inches.
- **Robust Error Handling**: Includes validations and error handling for input arguments and plot configurations.
- **Command-Line Interface**: Offers a user-friendly command-line interface for configuring and running the plotting process.
- **Dynamic Plotting Capabilities**: Capable of plotting varying data sets based on provided unfolding IDs.


## Requirements

- Python 3.9+
- Matplotlib

## Installation

1. Ensure Python 3.9 or higher is installed on your system.
2. Install via pip:
```bash
pip install chronotva
```

## Usage

Run the script from the command line. Default values will be used and an output directory with the current date and time will be created.
```bash
chronotva
``` 
You can also specify the desired parameters. For example:
```bash
chronotva --block-color "255,0,0,1" --edge-color "0,255,0,1" --output-format png
```

## Command-Line Arguments

- `-b, --block-color`: Block color in RGBA format or color name. Default: '230,230,230,1'
- `-e, --edge-color`: Block edge color in RGBA format or color name. Default: '25,25,25,1'
- `-v, --elevation`: Elevation angle for the plot in degrees. Default: 30
- `-a, --azimuth`: Azimuth angle for the plot in degrees. Default: 22.5
- `-f, --output-format`: Output file format (png, svg, pdf). Default: 'svg'
- `-d, --output-dir`: Output directory for the plots.
- `-p, --dpi`: DPI for the output image. Default: 300
- `-t, --transparent`: Enable transparency in the output image. Default: True
- `-s, --shade`: Enable shading in the 3D plot. Default: False
- `-x, --show-axes`: Show axes in the plot. Default: False
- `-w, --whitespace-removal`: Remove whitespace around the image. Default: True
- `-u, --unfolding-ids`: Comma-separated numeric identifiers of unfoldings to plot.

### Image Size
For image size, you can provide either pixel height and width, or inch height and width. Pixels will be converted to inches based off of the DPI value provided, 300 by default.
- `--pixel-height`: Height of the output image in pixels.
- `--pixel-width`: Width of the output image in pixels.  

Or provide:
- `--inch-height`: Height of the output image in inches. Default: 6.4
- `--inch-width`: Width of the output image in inches. Default: 4.8

If you want the image to be the exact size in pixels and inches with no trimming, make sure to pass in **--whitespace-removal false**.

## Examples

### Default Parameters
Run ChronoTVA with default parameters. This will generate an SVG image with default colors, dimensions, and angles, saving it in a directory named with the current date and time.
```bash
chronotva
```

### Custom Colors and Output Format
Generate a PNG image with red blocks and green edges. 
```bash
chronotva --block-color "255,0,0,1" --edge-color "0,255,0,1" --output-format png
```

### Adjusting View Angles
Set a specific elevation and azimuth angle for a different perspective. 
```bash
chronotva --elevation 45 --azimuth 45
```

### High-Resolution Output
Create a high-resolution image with increased DPI and transparency enabled. 
```bash
chronotva --dpi 600 --transparent true
```

### Image Size in Pixels
Generate an image with specific pixel dimensions, ensuring no whitespace removal for exact sizing.
```bash
chronotva --pixel-height 1080 --pixel-width 1920 --whitespace-removal false
```

### Image Size in Inches
Create an image with custom dimensions in inches, using SVG format. 
```bash
chronotva --inch-height 8 --inch-width 10 --output-format svg
```

### Selective Unfolding and Axis Display
Plot specific unfoldings of the tesseract and display axes.
```bash
chronotva --unfolding-ids 1,3,5 --show-axes true
```

### Custom Output Directory
Save the generated images in a specified directory.
```bash
chronotva --output-dir "/path/to/custom/directory"
```

### Combination of Various Options
A combination of various options, including color customization, view angle adjustment, and selective unfolding plotting.
```bash
chronotva --block-color "blue" --edge-color "yellow" --elevation 60 --azimuth 30 --unfolding-ids 2,4,6
```

### Full Customization
Fully customize the image with block and edge colors, DPI, transparency, shading, axis display, whitespace removal, and image size in pixels.
```bash
chronotva --block-color "128,0,128,0.5" --edge-color "255,165,0,1" --dpi 450 --transparent true --shade true --show-axes true --whitespace-removal false --pixel-height 1200 --pixel-width 1600
```

### Further Reading

The [unfoldings](https://github.com/mo271/mo271.github.io/blob/main/mo/198722/cube-unfoldings.txt) were created by [Moritz Firsching](https://github.com/mo271) and are from [exploring](https://github.com/mo271/mo271.github.io/blob/main/mo/198722/unfolding%20the%20hypercube.ipynb) how a tesseract, a four-dimensional hypercube, can be projected or unfolded into three-dimensional space. This process systematically analyzes the geometric relationships and connectivity of all cubes composing the tesseract. The process reveals 261 unique configurations, each representing a distinct unfolding of the tesseract, which can be visualized or rendered in three-dimensional space. 

For a much more thorough explanation of the complete unfolding process, check out [Unfolding the Tesseract](https://unfolding.apperceptual.com/) by [Peter D. Turney](https://www.apperceptual.com/) from the Journal of Recreational Math.


## License

This software is released under the MIT License.

## Contact

For support or contributions, please contact [Jacob 'the-chronomancer' Coleman](mailto:jacob.wade.coleman@gmail.com).

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "chronotva",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "tesseract,visualization,aid,unfoldings,isomorphism,matplotlib,oop",
    "author": "",
    "author_email": "Jacob Coleman <jacob.wade.coleman@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/76/7e/3e8ae501adbf8b715ed936f847b3879eccea2060082322d3dec951c99a73/chronotva-1.0.1.tar.gz",
    "platform": null,
    "description": "# ChronoTVA\n\n## Table of Contents\n- [Overview](#overview)\n- [Features](#features)\n- [Requirements](#requirements)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Command-Line Arguments](#command-line-arguments)\n  - [Image Size](#image-size)\n- [Examples](#examples)\n  - [Default Parameters](#default-parameters)\n  - [Custom Colors and Output Format](#custom-colors-and-output-format)\n  - [Adjusting View Angles](#adjusting-view-angles)\n  - [High-Resolution Output](#high-resolution-output)\n  - [Image Size in Pixels](#image-size-in-pixels)\n  - [Image Size in Inches](#image-size-in-inches)\n  - [Selective Unfolding and Axis Display](#selective-unfolding-and-axis-display)\n  - [Custom Output Directory](#custom-output-directory)\n  - [Combination of Various Options](#combination-of-various-options)\n  - [Full Customization](#full-customization)\n- [Further Reading](#further-reading)\n  - [Embeddings](#embeddings)\n- [License](#license)\n- [Contact](#contact)\n\n## Overview\n<p align=\"center\">\n  <img src=\"tesseract.svg\" width=25%>\n</p>\n\nChronoTVA (The **Chrono**mancer's **T**esseract **V**isualization **A**id) is a Python 3.9+ command-line tool designed for generating images from three-dimensional coordinates of unfoldings of a tesseract.\n\nThis has been tested with Python **3.9**, **3.10**, **3.11**, and **3.12**. The only dependency is **matplotlib**.\n\nFor more information on the unfolding process, please read the [Further Reading](#further-reading) section.\n\n## Features\n\n- **Color Customization**: Customize block and edge colors using RGBA format or named colors.\n- **View Angle Adjustment**: Set elevation and azimuth angles for 3D plot perspective.\n- **Output Format Options**: Generate images in PNG, SVG, or PDF format.\n- **Image Dimensions & DPI**: Control the dimensions and resolution (DPI) of the output image.\n- **Transparency and Shading**: Option to enable transparency and shading in the plot.\n- **Axis Display**: Toggle the display of axes in the plot.\n- **Automatic Output Directory Management**: Saves plots to a specified directory or creates a default one based on the current date and time.\n- **Selective Unfolding ID Plotting**: Plot specific unfoldings by providing their numeric identifiers.\n- **Whitespace Removal**: Automatically remove whitespace around the image.\n- **Flexible Dimension Specifications**: Set image dimensions either in pixels or inches.\n- **Robust Error Handling**: Includes validations and error handling for input arguments and plot configurations.\n- **Command-Line Interface**: Offers a user-friendly command-line interface for configuring and running the plotting process.\n- **Dynamic Plotting Capabilities**: Capable of plotting varying data sets based on provided unfolding IDs.\n\n\n## Requirements\n\n- Python 3.9+\n- Matplotlib\n\n## Installation\n\n1. Ensure Python 3.9 or higher is installed on your system.\n2. Install via pip:\n```bash\npip install chronotva\n```\n\n## Usage\n\nRun the script from the command line. Default values will be used and an output directory with the current date and time will be created.\n```bash\nchronotva\n``` \nYou can also specify the desired parameters. For example:\n```bash\nchronotva --block-color \"255,0,0,1\" --edge-color \"0,255,0,1\" --output-format png\n```\n\n## Command-Line Arguments\n\n- `-b, --block-color`: Block color in RGBA format or color name. Default: '230,230,230,1'\n- `-e, --edge-color`: Block edge color in RGBA format or color name. Default: '25,25,25,1'\n- `-v, --elevation`: Elevation angle for the plot in degrees. Default: 30\n- `-a, --azimuth`: Azimuth angle for the plot in degrees. Default: 22.5\n- `-f, --output-format`: Output file format (png, svg, pdf). Default: 'svg'\n- `-d, --output-dir`: Output directory for the plots.\n- `-p, --dpi`: DPI for the output image. Default: 300\n- `-t, --transparent`: Enable transparency in the output image. Default: True\n- `-s, --shade`: Enable shading in the 3D plot. Default: False\n- `-x, --show-axes`: Show axes in the plot. Default: False\n- `-w, --whitespace-removal`: Remove whitespace around the image. Default: True\n- `-u, --unfolding-ids`: Comma-separated numeric identifiers of unfoldings to plot.\n\n### Image Size\nFor image size, you can provide either pixel height and width, or inch height and width. Pixels will be converted to inches based off of the DPI value provided, 300 by default.\n- `--pixel-height`: Height of the output image in pixels.\n- `--pixel-width`: Width of the output image in pixels.  \n\nOr provide:\n- `--inch-height`: Height of the output image in inches. Default: 6.4\n- `--inch-width`: Width of the output image in inches. Default: 4.8\n\nIf you want the image to be the exact size in pixels and inches with no trimming, make sure to pass in **--whitespace-removal false**.\n\n## Examples\n\n### Default Parameters\nRun ChronoTVA with default parameters. This will generate an SVG image with default colors, dimensions, and angles, saving it in a directory named with the current date and time.\n```bash\nchronotva\n```\n\n### Custom Colors and Output Format\nGenerate a PNG image with red blocks and green edges. \n```bash\nchronotva --block-color \"255,0,0,1\" --edge-color \"0,255,0,1\" --output-format png\n```\n\n### Adjusting View Angles\nSet a specific elevation and azimuth angle for a different perspective. \n```bash\nchronotva --elevation 45 --azimuth 45\n```\n\n### High-Resolution Output\nCreate a high-resolution image with increased DPI and transparency enabled. \n```bash\nchronotva --dpi 600 --transparent true\n```\n\n### Image Size in Pixels\nGenerate an image with specific pixel dimensions, ensuring no whitespace removal for exact sizing.\n```bash\nchronotva --pixel-height 1080 --pixel-width 1920 --whitespace-removal false\n```\n\n### Image Size in Inches\nCreate an image with custom dimensions in inches, using SVG format. \n```bash\nchronotva --inch-height 8 --inch-width 10 --output-format svg\n```\n\n### Selective Unfolding and Axis Display\nPlot specific unfoldings of the tesseract and display axes.\n```bash\nchronotva --unfolding-ids 1,3,5 --show-axes true\n```\n\n### Custom Output Directory\nSave the generated images in a specified directory.\n```bash\nchronotva --output-dir \"/path/to/custom/directory\"\n```\n\n### Combination of Various Options\nA combination of various options, including color customization, view angle adjustment, and selective unfolding plotting.\n```bash\nchronotva --block-color \"blue\" --edge-color \"yellow\" --elevation 60 --azimuth 30 --unfolding-ids 2,4,6\n```\n\n### Full Customization\nFully customize the image with block and edge colors, DPI, transparency, shading, axis display, whitespace removal, and image size in pixels.\n```bash\nchronotva --block-color \"128,0,128,0.5\" --edge-color \"255,165,0,1\" --dpi 450 --transparent true --shade true --show-axes true --whitespace-removal false --pixel-height 1200 --pixel-width 1600\n```\n\n### Further Reading\n\nThe [unfoldings](https://github.com/mo271/mo271.github.io/blob/main/mo/198722/cube-unfoldings.txt) were created by [Moritz Firsching](https://github.com/mo271) and are from [exploring](https://github.com/mo271/mo271.github.io/blob/main/mo/198722/unfolding%20the%20hypercube.ipynb) how a tesseract, a four-dimensional hypercube, can be projected or unfolded into three-dimensional space. This process systematically analyzes the geometric relationships and connectivity of all cubes composing the tesseract. The process reveals 261 unique configurations, each representing a distinct unfolding of the tesseract, which can be visualized or rendered in three-dimensional space. \n\nFor a much more thorough explanation of the complete unfolding process, check out [Unfolding the Tesseract](https://unfolding.apperceptual.com/) by [Peter D. Turney](https://www.apperceptual.com/) from the Journal of Recreational Math.\n\n\n## License\n\nThis software is released under the MIT License.\n\n## Contact\n\nFor support or contributions, please contact [Jacob 'the-chronomancer' Coleman](mailto:jacob.wade.coleman@gmail.com).\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "ChronoTVA (The Chronomancer's Tesseract Visualization Aid) is a Python 3.9+ command-line tool designed for generating images from three-dimensional coordinates of all possible unfoldings of a tesseract (hypercube).",
    "version": "1.0.1",
    "project_urls": {
        "Documentation": "https://github.com/the-chronomancer/chronotva/README.md",
        "Homepage": "https://github.com/the-chronomancer/chronotva",
        "Source": "https://github.com/the-chronomancer/chronotva",
        "Tracker": "https://github.com/the-chronomancer/chronotva/issues"
    },
    "split_keywords": [
        "tesseract",
        "visualization",
        "aid",
        "unfoldings",
        "isomorphism",
        "matplotlib",
        "oop"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0ef4591f34a0d8e934fafc8be0d6b34cfe909ac86cb4bb2e7f7d3b24634cdbd6",
                "md5": "f089540a414f27b0d7927d92600a1180",
                "sha256": "c7767094a15c1e3898fe0c3e3eec1d918f2a9fed36dd8a2138b558ee7d0d77d8"
            },
            "downloads": -1,
            "filename": "chronotva-1.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f089540a414f27b0d7927d92600a1180",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 12973,
            "upload_time": "2023-11-19T20:33:57",
            "upload_time_iso_8601": "2023-11-19T20:33:57.245739Z",
            "url": "https://files.pythonhosted.org/packages/0e/f4/591f34a0d8e934fafc8be0d6b34cfe909ac86cb4bb2e7f7d3b24634cdbd6/chronotva-1.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "767e3e8ae501adbf8b715ed936f847b3879eccea2060082322d3dec951c99a73",
                "md5": "f0ed1703f86167392d7972aafd66892e",
                "sha256": "0869fa335862f290e642e151920bddb0186326ba812193b42d1a0364f11b25e1"
            },
            "downloads": -1,
            "filename": "chronotva-1.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "f0ed1703f86167392d7972aafd66892e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 17551,
            "upload_time": "2023-11-19T20:33:59",
            "upload_time_iso_8601": "2023-11-19T20:33:59.124012Z",
            "url": "https://files.pythonhosted.org/packages/76/7e/3e8ae501adbf8b715ed936f847b3879eccea2060082322d3dec951c99a73/chronotva-1.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-19 20:33:59",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "the-chronomancer",
    "github_project": "chronotva",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "chronotva"
}
        
Elapsed time: 0.15888s