Skip to main content

Creates a simple GUI for interactive plotting with sliders

Project description

suraida is a lightweight package facilitating interactive plotting similar to Mathematica's Manipulate. Do you want to visualize a function and "play" with its parameters? Jump into a jupyter notebook, import suraida and use its Manipulate class like this:

import suraida as sr
import numpy as np

def func(z, amplitude, omega, phase):
    return amplitude * np.sin(omega * z + phase)

sr.Manipulate(func,                          # the numerical function we wish to plot and manipulate parameters via sliders
              var_def=["z", 0, 7, 0.1],      # definition of the variable against which to plot `func`, specifying min, max and step
              param_defs=[
                  ["phase", [i*np.pi/5 for i in range(5)]],      # phase as list of allowed values
                  ["amplitude", 0, 2, 0.1],                # amplitude with min, max and step, default initial value is midpoint between min and max
                  ["omega", 0, 4, 0.1, 1.0]                # omega with min, max, step, ini
              ]
             )

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

suraida-1.0.0.tar.gz (3.1 MB view details)

Uploaded Source

Built Distribution

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

suraida-1.0.0-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file suraida-1.0.0.tar.gz.

File metadata

  • Download URL: suraida-1.0.0.tar.gz
  • Upload date:
  • Size: 3.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for suraida-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d9e9532b7ab6a137ca1e3b67a1b74f273fdc338cdc5483f6d71f96bef55ca720
MD5 83eecc33abca0a5dafe14b463cd152d9
BLAKE2b-256 128b44357b668bce5722506c100c02cb0ada92bbbb2bd684273c72ccf4f58647

See more details on using hashes here.

File details

Details for the file suraida-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: suraida-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 11.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for suraida-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 64aeb73a6a6ae5da071161b80b02fc98c99bce60937de97619ae5d95607ab646
MD5 132e7d7ec1a13d5347043191f90fc0b2
BLAKE2b-256 80c1a2096e4af47740a86395a954a5ee59a58874d7f3365abe6249d9f15c78cb

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