diff --git a/examples/advanced/ex_dipolarpathways_selection.py b/examples/advanced/ex_dipolarpathways_selection.py index 57fb0e18..bf255174 100644 --- a/examples/advanced/ex_dipolarpathways_selection.py +++ b/examples/advanced/ex_dipolarpathways_selection.py @@ -11,7 +11,6 @@ import numpy as np import matplotlib.pyplot as plt from matplotlib.gridspec import GridSpec -from mpl_toolkits.axes_grid1.inset_locator import inset_axes, InsetPosition import deerlab as dl @@ -79,9 +78,7 @@ Pfit = fits[n].P Pci = fits[n].PUncert.ci(95) # Setup the inset plot - axins = inset_axes(ax1,width="30%", height="30%", loc='upper left') - ip = InsetPosition(ax1,[0.35, 0.17+0.24*n, 0.6, 0.1]) - axins.set_axes_locator(ip) + axins = ax1.inset_axes([0.35, 0.17+0.24*n, 0.6, 0.1]) axins.yaxis.set_ticklabels([]) axins.yaxis.set_visible(False) # Plot the distance distributions and their confidence bands diff --git a/setup.py b/setup.py index a0747967..5d237fc5 100644 --- a/setup.py +++ b/setup.py @@ -25,7 +25,7 @@ 'joblib>=1.0.0', 'dill>=0.3.0', 'tqdm>=4.51.0', - 'matplotlib>=3.3.4', + 'matplotlib>=3.6.0', 'memoization>=0.3.1', 'pytest>=6.2.2', 'setuptools>=53.0.0',