diff options
author | Gard Spreemann <gspr@nonempty.org> | 2023-06-14 16:52:13 +0200 |
---|---|---|
committer | Gard Spreemann <gspr@nonempty.org> | 2023-06-14 16:52:13 +0200 |
commit | 2b51c7bfcf54d7e17ac7c2514f54408543cbe126 (patch) | |
tree | baf00cc603ceabad00626259eec898e6747d016c /examples/barycenters/plot_barycenter_1D.py | |
parent | a49f648b0b07737f7ef315fb83d8f78871780281 (diff) | |
parent | 96788a3fe5601e4c3f49b592aa0d9c034247862e (diff) |
Merge branch 'dfsg/latest'
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) |