Skip to content

Commit

Permalink
add heatmap test
Browse files Browse the repository at this point in the history
  • Loading branch information
martinvonk committed Nov 11, 2024
1 parent d721825 commit ce58d96
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_plots.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import matplotlib as mpl
from pandas import Series
from spei.plot import monthly_density
from spei.plot import heatmap, monthly_density
from spei.plot import si as plot_si

mpl.use("Agg") # prevent _tkinter.TclError: Can't find a usable tk.tcl error
Expand All @@ -16,3 +16,7 @@ def test_plot_si_no_background(si: Series) -> None:

def test_plot_monthly_density(si: Series) -> None:
_ = monthly_density(si, years=[2011], months=[1, 2, 3, 4, 5])


def test_plot_heatmap(si: Series) -> None:
_ = heatmap([si], cmap="vik", vmin=-3.0, vmax=3.0)

0 comments on commit ce58d96

Please sign in to comment.