Skip to main content

A simple package that helps plot arbitrary 4d functions.

Project description

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

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

plot4d-0.1.2.tar.gz (5.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

plot4d-0.1.2-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file plot4d-0.1.2.tar.gz.

File metadata

  • Download URL: plot4d-0.1.2.tar.gz
  • Upload date:
  • Size: 5.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.8

File hashes

Hashes for plot4d-0.1.2.tar.gz
Algorithm Hash digest
SHA256 547feb58d336e989d3362c1f1e627983ceb7e4dfd28e60f29d9ff491ef07a281
MD5 b9c3ffd0511dad582f6c23c2c61a138b
BLAKE2b-256 dd5854e091876cf9abd8025f7283839374e380d78c77012046f591cf7f39fa18

See more details on using hashes here.

File details

Details for the file plot4d-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: plot4d-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.8

File hashes

Hashes for plot4d-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 39f40d9510aeed9b877705bb41f6ccabc8f1820d65e0e91bbf2311c67072da3e
MD5 5f491958ff039f3c9509c053026ef254
BLAKE2b-256 1d65678674a4d5dce3abfeecefa964f8bae4b955df2e83dce381e57053f8dea5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page