matplotlib for solid state physics