The pheromone used by ladybugs to communicate has a similar chemical composition as chemicals commonly used in pen ink.  They rely on their sense of smell to detect pheromones, as a result of which lines drawn with pens appear to them as pheromone trails.