Added functions to materials to generate plots. Added an iOS SKView for rendering plots (but it doesn't render yet).