'Writing' Patterns on Carbon Nanotubes With Polymer Chains