Skip to main content

helper functions

Project description

Matrix and Plotting Helper Toolkit

Author: Institut fuer Baustatik und Baudynamik,Universitaet Stuttgart License: ADD LICENSE here Version: 1.0 Date: July 2025

Description:

This helper module provides a set of tools to make symbolic math, matrix visualization, and plotting (2D/3D) more intuitive and presentation-friendly, especially when working with SymPy, NumPy, Matplotlib, and Plotly in Jupyter Notebooks or other Python environments.

Modules Included:

  1. DMAT

    • Pretty-prints a truncated matrix with optional decimal or rational evaluation.
  2. DIS

    • Nicely formats scalars, vectors, or matrices in LaTeX for display.
  3. DIS_EI

    • Computes and displays eigenvalues and eigenvectors using clean LaTeX formatting.
  4. plot_2d

    • Plots symbolic expressions or numeric datasets in 2D using Matplotlib.
  5. plot_3d

    • Plots symbolic 3D surfaces using Plotly for interactive visualization.
  6. extend_plots

    • Merges multiple plots side-by-side (e.g., shifted versions).
  7. append_plots

    • Stacks multiple Matplotlib or Plotly plots into one combined figure.

Dependencies:

  • Python 3.8+
  • numpy
  • sympy
  • matplotlib
  • plotly
  • IPython (for LaTeX rendering in notebooks)

How to Use:

  1. Import the helper script:

    from your_module_name import *

  2. Visualize a matrix:

    DMAT(np.array([[1, 2], [3, 4]]), name="A")

  3. Display a symbolic expression:

    x = sp.Symbol('x') DIS(sp.sin(x)**2 + sp.cos(x)**2, name="Identity")

  4. Plot a symbolic 2D graph:

    plot_2d([sp.sin(x), sp.cos(x)], var=(x, (-np.pi, np.pi)), labels=["sin(x)", "cos(x)"])

  5. Plot a 3D surface:

    plot_3d(sp.sin(x*y), var=(x, (-2, 2), y, (-2, 2)), title="sin(xy) surface")

Notes:

  • This toolkit is especially suited for education, math research, or lab reports where symbolic clarity and visualization are critical.
  • Functions are designed to handle both SymPy and NumPy formats seamlessly.

License:

ADD RELEVANT

Contact:

Name/Email

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

ibb_helper-0.1.2.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

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

ibb_helper-0.1.2-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ibb_helper-0.1.2.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for ibb_helper-0.1.2.tar.gz
Algorithm Hash digest
SHA256 23255cae3641fac538fb24eca9c723dd58af664700685b382684ffc0ed63b6c0
MD5 94ba5ba3b322221c42df83eeca4d241c
BLAKE2b-256 323add16b8475d9192a5cc523d8e452d052cca62ac1f8b56dd53515f83ce87c5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ibb_helper-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for ibb_helper-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b0122a4954f6e9ea232f54a6c8f61691a5363e304cd78d1161b7901419483a36
MD5 26fc0b916bcad78488135b1e3d0d4180
BLAKE2b-256 1070a3269e92d62be5ace4ddda6159591b0d822296ac80274c9fbcf27558726c

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