Python 3 package for illustrating crystallography

Operations

In crystallography an object is considered symmetrical if it exhibits the 3 opertions of symmetry.

import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from PyCrystallography.operation import *
fig = plt.figure()
ax = fig.add_subplot(111,projection='3d')
######################################
# which ever 3d model you want to load
inversion(ax)
######################################
plt.show()

(i) Inversion

def inversion(ax,h,w,d):


(ii) Reflection

def reflection(ax,h,w,d):


(iii) Rotation

requires PyCrystallography.stereographic_projection