Repeat space theory applied to carbon nanotubes and matrix art