How Can I make line plot in a close box?

How can I amke the line plot in a close box, like the red box in the below figure?