title: python matplotlib.patches: draw a Circle patch but keep only part of the circle
body: <p>I am trying to plot a picture, and I have a rectangle plotted, then I wanted to plot a arc-shape element, but this element has to be precise, and it is only part of a circle that is outside the rectangle shape. So, I've tried to use Arc patch to create the same thing, but the shape doesn't match.</p>
  
  <p>As a result, I am wondering if it is possible to plot the circle, but only keeps the part of it that is outside the rectangle? To be more specific, I want to discard/hide/get rid of the BLUE ARROW part in the image below, and keep the RED ARROW part, which is outside the rectangle like an Arc-shape. Is there any method to do so?
  <a href="https://i.stack.imgur.com/XcmMm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XcmMm.png" alt="enter image description here"></a></p>
  
  <p>Here are my codes:</p>
  
  <pre><code>from matplotlib.patches import Circle, Rectangle, Arc, Ellipse
  
  def plot_pic(ax=None, color='black', lw=2, scale = 15):
      # get the current ax if ax is None
      if ax is None:
         ax = plt.gca()
  
  
      # Plot the rectangle
      rec =  Rectangle((-(7.32 * scale / 2+ 5.5 * scale +11 * scale),0), width = (5.5 * scale * 2 + 11 * scale * 2 + 7.32 * scale), height = 16.5 * scale, linewidth = lw, color = color, fill = False)
  
      testCircle = Circle((0, 11 * scale), radius = 9.15 * scale, color = color, lw = lw, fill = False)
  
  
      # List of elements to be plotted
      pic_elements = [rec, testCircle]
  
  
      # Add the elements onto the axes
      for element in pic_elements:
          ax.add_patch(element)
  
      return ax
  </code></pre>
  
  <p>After this, run the following:</p>
  
  <pre><code>plt.figure(figsize=(16, 22))
  plt.xlim(-600,600)
  plt.ylim(-100,1700)
  plot_pic()
  plt.show()
  </code></pre>
  
  <p>Thank you very much for your help.</p>