Skip to content

Commit

Permalink
replace allsegs with get_paths
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamOrmondroyd committed Oct 3, 2023
1 parent 9ba5202 commit c4dfa5c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__:
Expand All @@ -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__:
Expand All @@ -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__:
Expand Down

0 comments on commit c4dfa5c

Please sign in to comment.