Fixed several bugs in the custom plots, and added a limit line.