Plotting, curve fitting, and error propagation tools for physics labs
Project description
physplot
Plotting and error propagation tools related to lab work for students.
Usage
Import using: from physplot import Graph, Error, Propagation
- Graphing:
- Create figure and plot axes: Graph.plot_details(#row_plots, #col_plots, width, height, ...)
- Create Graph object: graph_obj = Graph(axs[#row, #col], x, y)
- Plot and decorate the object: obj.grapher(...) or Graph.grapher(obj, ...)
- Show graph: Graph.show()
- Error Data:
- Create Error object: err_obj = Error(data)
- Calculate error (can add certain constraints): err = Error.err(err_obj, ...) or err_obj.err(...)
- Error Propagation:
- Create Propagation object with 2 methods:
- Use Error object: prop_obj = Propagation({variable : err_obj}, ...)
- Use external error data: prop_obj = Propagation(manual_data = data, manual_err = err, ...)
- Calculate propagated error: Propagation.propagator(prop_obj, expression, ...) or prop_obj.propagator(expression, ...)
- Create Propagation object with 2 methods:
Dependencies
Requires numpy, matplotlib, scipy and sympy (come with installation of physplot)
Installation
pip install physplot
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
physplot-0.1.2.tar.gz
(4.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file physplot-0.1.2.tar.gz.
File metadata
- Download URL: physplot-0.1.2.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b7800cf3d556ffcff6b95e17256b19ed8fac6d423c4e247fac72073060621b0
|
|
| MD5 |
a377375400237b677348a6205d69d159
|
|
| BLAKE2b-256 |
ebea7372f3382a47d1a5e33a404331c8229b76574c425a22a8b15c219b925875
|
File details
Details for the file physplot-0.1.2-py3-none-any.whl.
File metadata
- Download URL: physplot-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1bf32120e24b9844c644e941bcccbabc46004db0b1848b8e9a3cc3a06437533b
|
|
| MD5 |
f6474734254d77c7691f638697d2a8c0
|
|
| BLAKE2b-256 |
8938ec30657ba4615ed50caa719c6dca64dd25a9a5a029ef4e841fd0fc3e592c
|