title: Getting axes of matplotlib.collections.PolyCollection
body: <p>I want to get axes of a <code>matplotlib.collections.PolyCollection</code>. If pc is such an object, running the code below:</p>
  
  <pre><code>ax = pc.axes.get_xaxis()
  </code></pre>
  
  <p>Though my code has been working before, I was encountering the warning below:</p>
  
  <blockquote>
    <p>MatplotlibDeprecationWarning: get_axes has been deprecated in mpl 1.5, please use the axes property. A removal date has not been set. </p>
  </blockquote>
  
  <p>But now I have encountered this error running the same program:</p>
  
  <blockquote>
    <p>'PolyCollection' object has no attribute 'get_axes'</p>
  </blockquote>
  
  <p>How can I get the axes after depreciation of the get_axes?</p>