At SciPy 2005, I thought I saw John show some examples of simple 3d surface plots in matplotlib. Is this code available?
Once you can draw points and lines on the screen, it's just a coordinate transform to make simple 3d plots (o.k. there are some hidden-line calculations too ).
The gist (in old scipy.xplt) package does simple 3d using just the 2d primitives.
-Travis
Travis E. Oliphant wrote:
At SciPy 2005, I thought I saw John show some examples of simple 3d surface plots in matplotlib. Is this code available?
Once you can draw points and lines on the screen, it's just a coordinate transform to make simple 3d plots (o.k. there are some hidden-line calculations too ).
The gist (in old scipy.xplt) package does simple 3d using just the 2d primitives.
I'm attaching it here, it was sent a while ago to the list, but things have been dormant on this front since.
The demo3d only has one demo, if you edit mplot3d, there's 3 more tests in it which you can see.
Cheers,
f
demo3d.py (573 Bytes)
proj3d.py (7.38 KB)
mplot3d.py (40.1 KB)