diff options
author | Nathan Cassereau <84033440+ncassereau-idris@users.noreply.github.com> | 2022-09-27 15:17:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-27 15:17:53 +0200 |
commit | e433775c2015eb85c2683b6955618c2836f001bc (patch) | |
tree | 2f0f950efeeed87cad27301a3852a6272550ad7f /examples/barycenters/plot_barycenter_1D.py | |
parent | b295ffccc95149c1d63e805e1ca6f027a4071e2a (diff) |
[MRG] Crash when computing weightless Hamming distance & Doc build (#402)
* Bug solve
* Releases.md updated
* pep8
* attempt to solve docs building bug
* releases.md
Diffstat (limited to 'examples/barycenters/plot_barycenter_1D.py')
-rw-r--r-- | examples/barycenters/plot_barycenter_1D.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/barycenters/plot_barycenter_1D.py b/examples/barycenters/plot_barycenter_1D.py index 2373e99..8096245 100644 --- a/examples/barycenters/plot_barycenter_1D.py +++ b/examples/barycenters/plot_barycenter_1D.py @@ -106,7 +106,7 @@ for i, z in enumerate(zs): ys = B_l2[:, i] verts.append(list(zip(x, ys))) -ax = plt.gcf().gca(projection='3d') +ax = plt.gcf().add_subplot(projection='3d') poly = PolyCollection(verts, facecolors=[cmap(a) for a in alpha_list]) poly.set_alpha(0.7) @@ -128,7 +128,7 @@ for i, z in enumerate(zs): ys = B_wass[:, i] verts.append(list(zip(x, ys))) -ax = plt.gcf().gca(projection='3d') +ax = plt.gcf().add_subplot(projection='3d') poly = PolyCollection(verts, facecolors=[cmap(a) for a in alpha_list]) poly.set_alpha(0.7) |