Skip to main content

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

  1. 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()
  2. Error Data:
    • Create Error object: err_obj = Error(data)
    • Calculate error (can add certain constraints): err = Error.err(err_obj, ...) or err_obj.err(...)
  3. 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, ...)

Dependencies

Requires numpy, matplotlib, scipy and sympy (come with installation of physplot)

Installation

pip install physplot

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

physplot-0.1.2.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

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

physplot-0.1.2-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

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

Hashes for physplot-0.1.2.tar.gz
Algorithm Hash digest
SHA256 7b7800cf3d556ffcff6b95e17256b19ed8fac6d423c4e247fac72073060621b0
MD5 a377375400237b677348a6205d69d159
BLAKE2b-256 ebea7372f3382a47d1a5e33a404331c8229b76574c425a22a8b15c219b925875

See more details on using hashes here.

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

Hashes for physplot-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1bf32120e24b9844c644e941bcccbabc46004db0b1848b8e9a3cc3a06437533b
MD5 f6474734254d77c7691f638697d2a8c0
BLAKE2b-256 8938ec30657ba4615ed50caa719c6dca64dd25a9a5a029ef4e841fd0fc3e592c

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