austinholland / PhasePApy

Python Seismic Phase Picker and Associator
88 stars 46 forks source link

MatplotlibDeprecationWarning: The axesPatch function was deprecated in version 2.1. Use Axes.patch instead. #13

Open austinholland opened 6 years ago

austinholland commented 6 years ago

This error was created running example_1dassociator

/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/mpl_toolkits/basemap/init.py:1704: MatplotlibDeprecationWarning: The axesPatch function was deprecated in version 2.1. Use Axes.patch instead. limb = ax.axesPatch /usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/mpl_toolkits/basemap/init.py:1707: MatplotlibDeprecationWarning: The axesPatch function was deprecated in version 2.1. Use Axes.patch instead. if limb is not ax.axesPatch: Traceback (most recent call last): File "example_1dassociator_OK.py", line 87, in plt.event_plot(1,west = -104.5, east= -94, south = 33.5, north = 37.5, deltalon = 1.0, deltalat = 1.0) File "../phasepapy/associator/plot1D.py", line 238, in event_plot subax = add_subplot_axes(ax,subpos) File "../phasepapy/associator/plot1D.py", line 26, in add_subplot_axes subax = fig.add_axes([x,y,width,height],axisbg=axisbg) File "/usr/local/lib/python3.6/site-packages/matplotlib/figure.py", line 1136, in add_axes a = projection_class(self, rect, **kwargs) File "/usr/local/lib/python3.6/site-packages/matplotlib/axes/_base.py", line 539, in init self.update(kwargs) File "/usr/local/lib/python3.6/site-packages/matplotlib/artist.py", line 888, in update for k, v in props.items()] File "/usr/local/lib/python3.6/site-packages/matplotlib/artist.py", line 888, in for k, v in props.items()] File "/usr/local/lib/python3.6/site-packages/matplotlib/artist.py", line 881, in _update_property raise AttributeError('Unknown property %s' % k) AttributeError: Unknown property axisbg