From c4dfa5c78e98a14cbc71a2fe6b31136b3acdaba3 Mon Sep 17 00:00:00 2001 From: AdamOrmondroyd Date: Tue, 3 Oct 2023 13:18:34 +0100 Subject: [PATCH] replace allsegs with get_paths --- tests/test_plot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_plot.py b/tests/test_plot.py index ecf7c7cf..3d1e793c 100644 --- a/tests/test_plot.py +++ b/tests/test_plot.py @@ -851,7 +851,7 @@ def test_logscale_2d(plot_2d): ax.set_xscale('log') p = plot_2d(ax, x, logy) if 'kde' in plot_2d.__name__: - xmax, ymax = p[0].allsegs[1][0].T + xmax, ymax = p[0].get_paths()[1].vertices[0] xmax = np.mean(np.log10(xmax)) ymax = np.mean(ymax) elif 'hist' in plot_2d.__name__: @@ -872,7 +872,7 @@ def test_logscale_2d(plot_2d): ax.set_yscale('log') p = plot_2d(ax, logx, y) if 'kde' in plot_2d.__name__: - xmax, ymax = p[0].allsegs[1][0].T + xmax, ymax = p[0].get_paths()[1].vertices[0] xmax = np.mean(xmax) ymax = np.mean(np.log10(ymax)) elif 'hist' in plot_2d.__name__: @@ -894,7 +894,7 @@ def test_logscale_2d(plot_2d): ax.set_yscale('log') p = plot_2d(ax, x, y) if 'kde' in plot_2d.__name__: - xmax, ymax = p[0].allsegs[1][0].T + xmax, ymax = p[0].get_paths()[1].vertices[0] xmax = np.mean(np.log10(xmax)) ymax = np.mean(np.log10(ymax)) elif 'hist' in plot_2d.__name__: