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:
-
DMAT
- Pretty-prints a truncated matrix with optional decimal or rational evaluation.
-
DIS
- Nicely formats scalars, vectors, or matrices in LaTeX for display.
-
DIS_EI
- Computes and displays eigenvalues and eigenvectors using clean LaTeX formatting.
-
plot_2d
- Plots symbolic expressions or numeric datasets in 2D using Matplotlib.
-
plot_3d
- Plots symbolic 3D surfaces using Plotly for interactive visualization.
-
extend_plots
- Merges multiple plots side-by-side (e.g., shifted versions).
-
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:
-
Import the helper script:
from your_module_name import *
-
Visualize a matrix:
DMAT(np.array([[1, 2], [3, 4]]), name="A")
-
Display a symbolic expression:
x = sp.Symbol('x') DIS(sp.sin(x)**2 + sp.cos(x)**2, name="Identity")
-
Plot a symbolic 2D graph:
plot_2d([sp.sin(x), sp.cos(x)], var=(x, (-np.pi, np.pi)), labels=["sin(x)", "cos(x)"])
-
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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23255cae3641fac538fb24eca9c723dd58af664700685b382684ffc0ed63b6c0
|
|
| MD5 |
94ba5ba3b322221c42df83eeca4d241c
|
|
| BLAKE2b-256 |
323add16b8475d9192a5cc523d8e452d052cca62ac1f8b56dd53515f83ce87c5
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0122a4954f6e9ea232f54a6c8f61691a5363e304cd78d1161b7901419483a36
|
|
| MD5 |
26fc0b916bcad78488135b1e3d0d4180
|
|
| BLAKE2b-256 |
1070a3269e92d62be5ace4ddda6159591b0d822296ac80274c9fbcf27558726c
|