Cleaned up potentiometer plotting.