Skip to content

Commit

Permalink
fix: remove deprecated matplotlib parameter (#197)
Browse files Browse the repository at this point in the history
Also adds a version constraint on `matplotlib` to use the minimum
version where the parameter is not needed anymore. See
https://stackoverflow.com/a/61403653
We do not consider this change as breaking since the minimum version
which is now required is over 3 years old.
  • Loading branch information
mbelak-dtml authored Dec 7, 2023
1 parent 647dc45 commit 386d868
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def show_fourier_transform(

y = 10 * np.log10(amplitude) if log else amplitude
_fig, ax = plt.subplots(figsize=figsize)
ax.stem(fft_freq, y, use_line_collection=True, markerfmt="")
ax.stem(fft_freq, y, markerfmt="")
ax.set_xlabel(f"Frequency [1 / {sampling_rate}{index_freq}]")
ax.set_ylabel("Amplitude" + (" [dB]" if log else ""))
ax.set_xlim(freq_min, freq_max)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ python = ">=3.8, <3.12"
ipykernel = "*"
pandas = ">=1.5, <2.1"
numpy = "*"
matplotlib = "*"
matplotlib = "^3.3"
seaborn = "^0.12"
plotly = ">=4.0.0, <6"
statsmodels = ">0.10.2"
Expand Down

0 comments on commit 386d868

Please sign in to comment.