Skip to main content

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. Fig:1

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 Fig:5 Fig:3

Inspect

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

Fig:4

Tutorials and Examples

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

Demo-Notebook

TODO

  • Add configs for Jupyter Notebook compatibility
  • Add animation option
  • Make 3D cylindrical grid
  • Make 3D polar grid
  • Make vector field plot

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

esel3d-0.1.48.tar.gz (20.1 kB view hashes)

Uploaded Source

Built Distribution

esel3d-0.1.48-py3-none-any.whl (19.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page