Skip to content

Instantly share code, notes, and snippets.

View mtesseracted's full-sized avatar

mtesseracted

  • Duke University
  • USA
View GitHub Profile
@mtesseracted
mtesseracted / numpyRot.py
Created March 2, 2018 19:14
Rotating NumPy logo in voxels
'''
=====================================
Rotating 3D voxel animation of PYTHON
=====================================
Demonstrates using ``ax.voxels`` with uneven coordinates
'''
import matplotlib.pyplot as plt
import numpy as np
from mpl_toolkits.mplot3d import Axes3D
@mtesseracted
mtesseracted / pythonRotate.py
Last active May 28, 2020 12:29
PYTHON in rotating voxels
'''
=====================================
Rotating 3D voxel animation
=====================================
Demonstrates using ``ax.voxels`` with uneven coordinates
'''
import matplotlib.pyplot as plt
import numpy as np
from mpl_toolkits.mplot3d import Axes3D
@mtesseracted
mtesseracted / pyplotRotate.py
Last active March 2, 2018 20:04
PYPLOT logo in rotating voxels
'''
=====================================
Rotating 3D voxel animation of PYPLOT
=====================================
1. Demonstrates using ``ax.voxels`` with uneven coordinates
2. Demonstrates rotating a 3D plot
3. Uses a MovieWriter directly to grab individual frames and
write them to a file
'''
@mtesseracted
mtesseracted / numpyrotate.py
Last active March 10, 2019 12:40
NumPy logo in rotating voxels
'''
matplotlib must be developer release for voxel support
install instructions:
https://matplotlib.org/devdocs/users/installing.html
'''
import matplotlib.pyplot as plt
import numpy as np
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.animation as manimation