Skip to main content

Plot4D Package

This is a package for plotting arbitrary 4D functions.

Function w(x, y, z) is visualized as an animation where each frame is a 2D cross-section w(x, y, z=z_plot) with the fourth dimension represented by color.

Example result: Alt Text

Install

  • Via PyPI

    pip install plot4d
    

Functions

  • plotter.plot4d_CS for plotting a single cross-section for an arbitrary 4D function
  • plotter.plot4d for generating an animation of cross-section plots for an arbitrary 4D function

Inputs and returns are well documented in the docstrings.

Quick Start

Basic use examples can be found here: basic tour notebook.

Notes

Input parameter "frame" should be an instance of plotter.Frame2D as defined here:

@dataclass
class Frame2D: 
    xmin: float = 0
    xmax: float = 1
    ymin: float = 0
    ymax: float = 1
    xlabel: str = "x"
    ylabel: str = "y"
    xnum: int = 20 # number of sample points in the x direction
    ynum: int = 20 # number of sample points in the y direction

Metadata

Release files for plot4d 0.1.2

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

Source distribution (sdist)

Source distribution for plot4d 0.1.2
File Size Uploaded
plot4d-0.1.2.tar.gz 5.6 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for plot4d 0.1.2
File Interpreter ABI Platform
plot4d-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 5.6 MB

Release files / plot4d-0.1.2.tar.gz

Download URL plot4d-0.1.2.tar.gz
Size 5.6 MB
Tags Source
SHA-256 checksum
How to use checksums
547feb58d336e989d3362c1f1e627983ceb7e4dfd28e60f29d9ff491ef07a281
BLAKE2b-256 checksum
How to use checksums
dd5854e091876cf9abd8025f7283839374e380d78c77012046f591cf7f39fa18
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.8

Release files / plot4d-0.1.2-py3-none-any.whl

Download URL plot4d-0.1.2-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
39f40d9510aeed9b877705bb41f6ccabc8f1820d65e0e91bbf2311c67072da3e
BLAKE2b-256 checksum
How to use checksums
1d65678674a4d5dce3abfeecefa964f8bae4b955df2e83dce381e57053f8dea5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.8

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

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