Enhanced the function to extract data and plot it with different annotations and draw limit with boxes