From 33e450433f503652ffb5603a70d0db6f95e41e2b Mon Sep 17 00:00:00 2001 From: lpldmller Date: Fri, 3 Mar 2023 11:45:23 +0100 Subject: [PATCH] Fixed Matplotlib subplot warning --- mcerp/correlate.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mcerp/correlate.py b/mcerp/correlate.py index ea78257..56f17ae 100644 --- a/mcerp/correlate.py +++ b/mcerp/correlate.py @@ -131,18 +131,18 @@ def plotcorr(X, plotargs=None, full=True, labels=None): # Set up ticks only on one side for the "edge" subplots... if full: - if ax.is_first_col(): + if ax.get_subplotspec().is_first_col(): ax.yaxis.set_ticks_position("left") - if ax.is_last_col(): + if ax.get_subplotspec().is_last_col(): ax.yaxis.set_ticks_position("right") - if ax.is_first_row(): + if ax.get_subplotspec().is_first_row(): ax.xaxis.set_ticks_position("top") - if ax.is_last_row(): + if ax.get_subplotspec().is_last_row(): ax.xaxis.set_ticks_position("bottom") else: - if ax.is_first_row(): + if ax.get_subplotspec().is_first_row(): ax.xaxis.set_ticks_position("top") - if ax.is_last_col(): + if ax.get_subplotspec().is_last_col(): ax.yaxis.set_ticks_position("right") # Label the diagonal subplots...