Metadata-Version: 2.1
Name: esel3d
Version: 0.1.48
Summary: A 3D plotter for Google Colab and Jupyter Notebook
Home-page: https://github.com/esel-fliegen/esel3d
Author: Khan Tran
Author-email: esel.fliegen@gmail.com
License: UNKNOWN
Project-URL: Bug Tracker, https://github.com/esel-fliegen/esel3d/issues
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: GNU General Public License (GPL)
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

# esel3d

[Esel3D](https://pypi.org/project/esel3d/0.1.47/) 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](https://www.babylonjs.com/) 
game engine to produce vibrant visuals and provides intuitive controls right inside a
Google Colab cell. 

### Install

```html
#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

```python
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.
![Fig:1](https://raw.githubusercontent.com/esel-fliegen/esel3d/main/img/esel3d_img1.png)

## 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. 
![Fig:2](https://raw.githubusercontent.com/esel-fliegen/esel3d/main/img/esel3d_img2.png)
![Fig:5](https://raw.githubusercontent.com/esel-fliegen/esel3d/main/img/esel3d_img5.png)
![Fig:3](https://raw.githubusercontent.com/esel-fliegen/esel3d/main/img/esel3d_img3.png)

## Inspect

With the point explorer gizmo, users can view point location. 

![Fig:4](https://raw.githubusercontent.com/esel-fliegen/esel3d/main/img/esel3d_img4.png)
 
## Tutorials and Examples

Tuts and examples will be provided in the form of YouTube videos with accompanying example notebooks. 

[Demo-Notebook](https://colab.research.google.com/gist/esel-fliegen/e56b29d1814ffaf839854f775c229cd6/esel3d_beta-demo-colab.ipynb)

## TODO
- [ ] Add configs for Jupyter Notebook compatibility
- [ ] Add animation option
- [ ] Make 3D cylindrical grid
- [ ] Make 3D polar grid
- [ ] Make vector field plot

