mplstereonet
mplstereonet copied to clipboard
Address deprecation warning for 'Axes.cla'
Address a deprecation warning for the Axes.cla
method, which was added in matplotlib version 3.6. This is a very minor change, where instances of .cla
have been changed to .clear
.
Information on change: https://matplotlib.org/devdocs/api/next_api_changes/deprecations/23735-ES.html
I suppose it would also be useful to soft deprecate the .cla
method locally to maintain backwards compatibility for existing users of mplstereonet? Maybe just a wrapper:
def cla(self):
warnings.warn(
"The `.cla` method has been deprecated in favour of `.clear` in "
"matplotlib 3.6 and onwards."
)
self.clear()
with the appropriate import at the top.
Hey,
I am also seeing this issue in the GemPy tests now.
Cheers Alex