title: How to hide the lines of a graph in MATLAB so that they do not extend beyond the frame
body: <p>Is there any way to hide the overflow so that the lines don't protrude from the frame as in the attached image?</p>
  <pre><code>plot(sin(0:0.1:10),&quot;LineWidth&quot;,10)
  </code></pre>
  <p><a href="https://i.stack.imgur.com/J3hOK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/J3hOK.png" alt="enter image description here" /></a></p>