Add scaled plotting function contents.