Handle anisotropic cube files properly

This patch fixes problems with rendering orbitals from cube files with anisotropic grids.