Change plot function to one written by ProgrammerNerd on Cemetech (assuming it is public domain).