Simple Python 2D/3D Plotting Tool

Small project I named threeplot. Uses Threejs to plot Python functions (lists or numpy arrays) as 2D scatter plots!
Can hover over a data point, drag the plot around, and zoom in.

Example:
https://chrisboligprojects.pythonanywhere.com/python3Dex

If you have Python, it should hopefully work. Just download and run main.py
Here’s the repo: GitHub - chrismars91/threeplot: uses Flask and threejs to plot python data

And some pics:



It has issues too. The raycaster doesn’t work 100% when there is a lot of data. Maybe too many sprites stacked on top of each other? Also, when you zoom in too far in or out, text starts to get wonky.

You could possilby extend this idea to create sweet animated plots and great 3D plots. Maybe one day :slight_smile:

Thanks!

1 Like

Can now plot some simple 3d surface plots. Tried to mimic matplotlib’s (from python) surface plot function.
run ex1.py in the github repo

(see the ability to apply a color map :slight_smile: )



1 Like