From 407480fa477c73e384ed4078e3443feafbaf665d Mon Sep 17 00:00:00 2001 From: mferrera Date: Mon, 8 Jul 2024 08:00:25 +0200 Subject: [PATCH] Fix matplotlib argument typing matplotlib updated its type annotations and indicated that the method arguments changed in this commit should not receive lists, but tuples. --- src/pyscal/gasoil.py | 2 +- src/pyscal/gaswater.py | 2 +- src/pyscal/wateroil.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pyscal/gasoil.py b/src/pyscal/gasoil.py index 6993b8b9..5630aba6 100644 --- a/src/pyscal/gasoil.py +++ b/src/pyscal/gasoil.py @@ -1035,7 +1035,7 @@ def plotkrgkrog( useax = mpl_ax if logyscale: useax.set_yscale("log") - useax.set_ylim([1e-8, 1]) + useax.set_ylim((1e-8, 1)) self.table.plot( ax=useax, x="SG", diff --git a/src/pyscal/gaswater.py b/src/pyscal/gaswater.py index 716623db..5ceac21c 100644 --- a/src/pyscal/gaswater.py +++ b/src/pyscal/gaswater.py @@ -332,7 +332,7 @@ def plotkrwkrg( useax = mpl_ax if logyscale: useax.set_yscale("log") - useax.set_ylim([1e-8, 1]) + useax.set_ylim((1e-8, 1)) self.wateroil.table.plot( ax=useax, x="SW", diff --git a/src/pyscal/wateroil.py b/src/pyscal/wateroil.py index 61c55385..fc7e6596 100644 --- a/src/pyscal/wateroil.py +++ b/src/pyscal/wateroil.py @@ -1355,7 +1355,7 @@ def plotpc( useax = mpl_ax if logyscale: useax.set_yscale("log") - useax.set_ylim([1e-6, 100]) + useax.set_ylim((1e-6, 100)) self.table.plot( ax=useax, x="SW", @@ -1397,7 +1397,7 @@ def plotkrwkrow( useax = mpl_ax if logyscale: useax.set_yscale("log") - useax.set_ylim([1e-8, 1]) + useax.set_ylim((1e-8, 1)) self.table.plot( ax=useax, x="SW",