A 3D plotter for Google Colab and Jupyter Notebook
Project description
esel3d
Esel3D is an interactive playground to visualize math in three spatial dimensions. It is a 3D plotter for curves, surfaces, shapes and more. The redering uses BabylonJS game engine to produce vibrant visuals and provides intuitive controls right inside a Google Colab cell.
Install
#in the first Colab cell
!pip install esel3d
*esel3d will also work with a local Jupyter notebook but with extra configuration. However, it's a bit hacky. Once I find a permanent solution, I'll update.
Example Usage
from esel3d import plot3d
import numpy as np
#define boundary condition and plot resolution
x_initial = -2
x_final = 2
y_initial = -1
y_final = 1
resolution = 0.1
#define function
def func(x, y):
return -np.power(x, 2)
#create instance and plot.
#instance creation and plot must be in the same cell.
plt3d = plot3d()
plt3d.surface(func, [xinitial, xfinal], [yinitial, yfinal], resolution)
plt3d.plot()
Navigate
Explore and view the plot from all angles in 3D space.
Configurable
Add custom labels. Change the color scheme of the axis. Chose the background color which is the most appealing. Plot up to 3 sufaces.
Inspect
With the point explorer gizmo, users can view point location.
Tutorials and Examples
Tuts and examples will be provided in the form of YouTube videos with accompanying example notebooks.
TODO
- Add configs for Jupyter Notebook compatibility
- Add animation option
- Make 3D cylindrical grid
- Make 3D polar grid
- Make vector field plot
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
File details
Details for the file esel3d-0.1.48.tar.gz
.
File metadata
- Download URL: esel3d-0.1.48.tar.gz
- Upload date:
- Size: 20.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9067b9427f316cdb8cdbc3c80cd194625583d0289e427c4d20e3d942f1eee62d |
|
MD5 | 9ba4f320993051784e62f157967ac3bd |
|
BLAKE2b-256 | 536bbc992513c023ba8eab8b3d4a2d3a2c5aaba03660170700ec4092735deb9b |
File details
Details for the file esel3d-0.1.48-py3-none-any.whl
.
File metadata
- Download URL: esel3d-0.1.48-py3-none-any.whl
- Upload date:
- Size: 19.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5bea43b327551b6a33a657fef9a10636c062236ac8410df0c22d57c8eaf59d8b |
|
MD5 | 81d4a0839039cdf420cea7c2d713d8eb |
|
BLAKE2b-256 | dd6f63ffc34996e957de386e25c8144ba1fe04394e9c7d80c4fd0886cba1e41a |