()
| 6168 | |
| 6169 | |
| 6170 | def test_psd_csd_edge_cases(): |
| 6171 | # Inverted yaxis or fully zero inputs used to throw exceptions. |
| 6172 | axs = plt.figure().subplots(2) |
| 6173 | for ax in axs: |
| 6174 | ax.yaxis.set(inverted=True) |
| 6175 | with np.errstate(divide="ignore"): |
| 6176 | axs[0].psd(np.zeros(5)) |
| 6177 | axs[1].csd(np.zeros(5), np.zeros(5)) |
| 6178 | |
| 6179 | |
| 6180 | @check_figures_equal() |