Skip to content

Commit

Permalink
Apply decrecacion rcparam only in new versions of matplotlib
Browse files Browse the repository at this point in the history
  • Loading branch information
david-castillo committed Oct 25, 2020
1 parent f259e2b commit 44afbba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion _pytadbit/utils/extraviews.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
from mpl_toolkits.mplot3d import Axes3D
from matplotlib.ticker import FuncFormatter

plt.rcParams["mpl_toolkits.legacy_colorbar"] = False
if "mpl_toolkits.legacy_colorbar" in plt.rcParams:
plt.rcParams["mpl_toolkits.legacy_colorbar"] = False
except ImportError:
warn('matplotlib not found\n')

Expand Down

0 comments on commit 44afbba

Please sign in to comment.