Cartoons of different crystalline sample types  

These animations are cartoons of different crystal types in increasing levels of disorder from top left to bottom right. They are: single-crystal; twinned crystal; crystal with mosaic spread; crystal with preferred orientation/texture; powder sample; nanocrystalline sample. The matlab code prompts the user to choose between these six options. 

Matlab code