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