Skip to content

Commit

Permalink
Fix matplotlib argument typing
Browse files Browse the repository at this point in the history
matplotlib updated its type annotations and indicated that
the method arguments changed in this commit should not
receive lists, but tuples.
  • Loading branch information
mferrera committed Jul 8, 2024
1 parent dab68e7 commit 407480f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/pyscal/gasoil.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/pyscal/gaswater.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/pyscal/wateroil.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 407480f

Please sign in to comment.