updated limit plot code to make latest style