Skip to content

Commit

Permalink
Support for matplotlib 3.5 (#246)
Browse files Browse the repository at this point in the history
* Adapt deprecated keyword arguments
  • Loading branch information
dnerini committed Dec 3, 2021
1 parent ecbe196 commit 183932a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/plot_cascade_decomposition.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
np.linspace(0, L / 2, len(filter["weights_1d"][k, :])),
filter["weights_1d"][k, :],
"k-",
basex=pow(0.5 * L / 3, 1.0 / (num_cascade_levels - 2)),
base=pow(0.5 * L / 3, 1.0 / (num_cascade_levels - 2)),
)
ax.set_xlim(1, L / 2)
ax.set_ylim(0, 1)
Expand Down
2 changes: 1 addition & 1 deletion pysteps/verification/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def plot_reldiag(reldiag, ax=None):
color="gray",
edgecolor="black",
)
iax.set_yscale("log", basey=10)
iax.set_yscale("log", base=10)
iax.set_xticks(reldiag["bin_edges"])
iax.set_xticklabels(["%.1f" % max(v, 1e-6) for v in reldiag["bin_edges"]])
yt_min = int(max(np.floor(np.log10(min(reldiag["sample_size"][:-1]))), 1))
Expand Down

0 comments on commit 183932a

Please sign in to comment.