updated limit plot script
updated limit setting code