suraida


Namesuraida JSON
Version 1.0.0 PyPI version JSON
download
home_pageNone
SummaryCreates a simple GUI for interactive plotting with sliders
upload_time2025-01-09 18:21:01
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseBSD
keywords interactive plotting
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            `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:
```python
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
              ]
             )
```
<img src="https://github.com/scqubits/suraida/blob/main/display.gif" width="800" />



            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "suraida",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "interactive, plotting",
    "author": null,
    "author_email": "Jens Koch <jens-koch@northwestern.edu>, Yunwei Lu <yunweilu2020@u.northwestern.edu>",
    "download_url": "https://files.pythonhosted.org/packages/12/8b/44357b668bce5722506c100c02cb0ada92bbbb2bd684273c72ccf4f58647/suraida-1.0.0.tar.gz",
    "platform": "Linux",
    "description": "`suraida` is a lightweight package facilitating\ninteractive plotting similar to Mathematica's `Manipulate`.\nDo you want to visualize a function and \"play\" with its parameters?\nJump into a jupyter notebook, import `suraida` and use\nits `Manipulate` class like this:\n```python\nimport suraida as sr\nimport numpy as np\n\ndef func(z, amplitude, omega, phase):\n    return amplitude * np.sin(omega * z + phase)\n\nsr.Manipulate(func,                          # the numerical function we wish to plot and manipulate parameters via sliders\n              var_def=[\"z\", 0, 7, 0.1],      # definition of the variable against which to plot `func`, specifying min, max and step\n              param_defs=[\n                  [\"phase\", [i*np.pi/5 for i in range(5)]],      # phase as list of allowed values\n                  [\"amplitude\", 0, 2, 0.1],                # amplitude with min, max and step, default initial value is midpoint between min and max\n                  [\"omega\", 0, 4, 0.1, 1.0]                # omega with min, max, step, ini\n              ]\n             )\n```\n<img src=\"https://github.com/scqubits/suraida/blob/main/display.gif\" width=\"800\" />\n\n\n",
    "bugtrack_url": null,
    "license": "BSD",
    "summary": "Creates a simple GUI for interactive plotting with sliders",
    "version": "1.0.0",
    "project_urls": null,
    "split_keywords": [
        "interactive",
        " plotting"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "80c1a2096e4af47740a86395a954a5ee59a58874d7f3365abe6249d9f15c78cb",
                "md5": "132e7d7ec1a13d5347043191f90fc0b2",
                "sha256": "64aeb73a6a6ae5da071161b80b02fc98c99bce60937de97619ae5d95607ab646"
            },
            "downloads": -1,
            "filename": "suraida-1.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "132e7d7ec1a13d5347043191f90fc0b2",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 11580,
            "upload_time": "2025-01-09T18:20:59",
            "upload_time_iso_8601": "2025-01-09T18:20:59.166382Z",
            "url": "https://files.pythonhosted.org/packages/80/c1/a2096e4af47740a86395a954a5ee59a58874d7f3365abe6249d9f15c78cb/suraida-1.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "128b44357b668bce5722506c100c02cb0ada92bbbb2bd684273c72ccf4f58647",
                "md5": "83eecc33abca0a5dafe14b463cd152d9",
                "sha256": "d9e9532b7ab6a137ca1e3b67a1b74f273fdc338cdc5483f6d71f96bef55ca720"
            },
            "downloads": -1,
            "filename": "suraida-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "83eecc33abca0a5dafe14b463cd152d9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 3091045,
            "upload_time": "2025-01-09T18:21:01",
            "upload_time_iso_8601": "2025-01-09T18:21:01.771510Z",
            "url": "https://files.pythonhosted.org/packages/12/8b/44357b668bce5722506c100c02cb0ada92bbbb2bd684273c72ccf4f58647/suraida-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-01-09 18:21:01",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "suraida"
}
        
Elapsed time: 1.08098s