Figure layout generator.