From 83965663dd96497562db02a1a6448fce98e7eff5 Mon Sep 17 00:00:00 2001 From: Adrian Helmling-Cornell Date: Mon, 8 Aug 2022 23:51:53 +0000 Subject: [PATCH 1/6] nonpos->nonpositive in plot-all-injections --- etc/plot-all-injections.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/plot-all-injections.py b/etc/plot-all-injections.py index d025748..e7b7420 100755 --- a/etc/plot-all-injections.py +++ b/etc/plot-all-injections.py @@ -82,8 +82,8 @@ for channel in channels: amb_min = 10 ** np.floor(np.log10(min(ambients))) if max(ambients) > amb_max: amb_max = 10 ** np.ceil(np.log10(max(ambients))) - ax.set_xscale('log', nonposx='clip') - ax.set_yscale('log', nonposx='clip') + ax.set_xscale('log', nonpositive='clip') + ax.set_yscale('log', nonpositive='clip') #ax.set_xticks(range(0, 200, 2)) ax.set_xlim(5, 3000) ax.set_ylim(1e-24, 1e-16) -- GitLab From 384efd075e26c4e76fd3488bdc123befc0de98e5 Mon Sep 17 00:00:00 2001 From: Adrian Helmling-Cornell Date: Mon, 8 Aug 2022 23:52:21 +0000 Subject: [PATCH 2/6] nonpos->nonpositive in coherence --- pemcoupling/coherence.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pemcoupling/coherence.py b/pemcoupling/coherence.py index 5827c32..4cdcf1c 100644 --- a/pemcoupling/coherence.py +++ b/pemcoupling/coherence.py @@ -86,7 +86,7 @@ s plt.xlabel('Frequency [Hz]') plt.ylim([0, 1]) plt.xlim([10, max(freqs)]) - ax.set_xscale('log', nonposx='clip') + ax.set_xscale('log', nonpositive='clip') ax.autoscale(False) plt.grid( b=True, which='major', color='0.75', linestyle=':', zorder=1) -- GitLab From 78bbc75dee46405163ec429fb00f11fa7fbe4871 Mon Sep 17 00:00:00 2001 From: Adrian Helmling-Cornell Date: Mon, 8 Aug 2022 23:53:06 +0000 Subject: [PATCH 3/6] nonpos->nonpositive in plot --- pemcoupling/plot.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pemcoupling/plot.py b/pemcoupling/plot.py index 9ba9c20..5ceb2a0 100644 --- a/pemcoupling/plot.py +++ b/pemcoupling/plot.py @@ -173,8 +173,8 @@ def plot_cf(cf, filename, in_counts=False, timestamp=None, # CUSTOMIZE AXES plt.xlim([freq_min, freq_max]) plt.ylim([factor_min, factor_max]) - ax.set_xscale('log', nonposx='clip') - ax.set_yscale('log', nonposy='clip') + ax.set_xscale('log', nonpositive='clip') + ax.set_yscale('log', nonpositive='clip') ax.autoscale(False) plt.grid( b=True, which='major', color='0.0', linestyle=':', linewidth=1, @@ -307,8 +307,8 @@ def plot_injection( plt.xlim([freq_min, freq_max]) plt.ylim([spec_sens_min, spec_sens_max]) if ((freq_max / freq_min) > 5): - ax1.set_xscale('log', nonposx='clip') - ax1.set_yscale('log', nonposy='clip') + ax1.set_xscale('log', nonpositive='clip') + ax1.set_yscale('log', nonpositive='clip') ax1.autoscale(False) plt.grid( b=True, which='major', color='0.0', linestyle=':', linewidth=1, @@ -423,8 +423,8 @@ def plot_injection( plt.xlim([freq_min, freq_max]) plt.ylim([spec_min, spec_max]) if ((freq_max / freq_min) > 5): - ax2.set_xscale('log', nonposx='clip') - ax2.set_yscale('log', nonposy='clip') + ax2.set_xscale('log', nonpositive='clip') + ax2.set_yscale('log', nonpositive='clip') ax2.autoscale(False) plt.grid( b=True, which='major', color='0.0', linestyle=':', linewidth=1, -- GitLab From 4059bc703c0302c8d2a3c0e00da644805d8fd7c5 Mon Sep 17 00:00:00 2001 From: Adrian Helmling-Cornell Date: Mon, 8 Aug 2022 23:53:42 +0000 Subject: [PATCH 4/6] nonpos->nonpositive in composite-utils --- pemcoupling/postprocess/composite_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pemcoupling/postprocess/composite_utils.py b/pemcoupling/postprocess/composite_utils.py index df22a66..2d92d41 100644 --- a/pemcoupling/postprocess/composite_utils.py +++ b/pemcoupling/postprocess/composite_utils.py @@ -114,9 +114,9 @@ class CompositePlot(object): if y_min is not None and y_max is not None: self.ax.set_ylim([y_min, y_max]) if x_max / x_min > 100: - self.ax.set_xscale('log', nonposx='clip') + self.ax.set_xscale('log', nonpositive='clip') if y_max / y_min > 100: - self.ax.set_yscale('log', nonposy='clip') + self.ax.set_yscale('log', nonpositive='clip') self.ax.autoscale(False) # Grid lines and ticks self.ax.grid( -- GitLab From 5d595a6165c46294ed4b8e55b683d4392aed2ddd Mon Sep 17 00:00:00 2001 From: Adrian Helmling-Cornell Date: Mon, 8 Aug 2022 23:54:21 +0000 Subject: [PATCH 5/6] nonpos->nonpositive in sitewide-utils --- pemcoupling/postprocess/sitewide_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pemcoupling/postprocess/sitewide_utils.py b/pemcoupling/postprocess/sitewide_utils.py index 48aaa1f..5ee03bf 100644 --- a/pemcoupling/postprocess/sitewide_utils.py +++ b/pemcoupling/postprocess/sitewide_utils.py @@ -313,9 +313,9 @@ class SummaryPlot(object): self.ax.set_xlim(self.xlim) self.ax.set_ylim(self.ylim) if self.xlim[1] / self.xlim[0] > 100: - self.ax.set_xscale('log', nonposx='clip') + self.ax.set_xscale('log', nonpositive='clip') if self.ylim[1] / self.ylim[0] > 100: - self.ax.set_yscale('log', nonposy='clip') + self.ax.set_yscale('log', nonpositive='clip') self.ax.autoscale(False) self.ax.grid( b=True, which='major', color='0.0', linestyle=':', zorder=1) -- GitLab From ad918e8159cd5b439ff7df71f35837fc502b2550 Mon Sep 17 00:00:00 2001 From: Adrian Helmling-Cornell Date: Mon, 8 Aug 2022 23:54:49 +0000 Subject: [PATCH 6/6] nonpos->nonpositive in ratioplots --- pemcoupling/ratioplots.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pemcoupling/ratioplots.py b/pemcoupling/ratioplots.py index 0f8bc7d..35fe77c 100644 --- a/pemcoupling/ratioplots.py +++ b/pemcoupling/ratioplots.py @@ -150,7 +150,7 @@ def ratio_plots( cmap=cmap, vmin=ratio_min, vmax=ratio_max, norm=norm) ax.set_yticks([], []) ax.set_xlim([freq_min, freq_max]) - ax.set_xscale('log', nonposy='clip') + ax.set_xscale('log', nonpositive='clip') ax.xaxis.set_tick_params(which='major', direction='out', width=3) ax.xaxis.set_tick_params(which='minor', direction='out', width=2) ax.xaxis.grid(which='both', color='white', alpha=0.4) -- GitLab