Photoisomerization-induced patterning of ion-pairing materials based on anionic azobenzene and its complex with a fluorescent π-electronic system.