summaryrefslogtreecommitdiff
path: root/docs/source/auto_examples/plot_free_support_barycenter.py
diff options
context:
space:
mode:
authorRĂ©mi Flamary <remi.flamary@gmail.com>2020-04-21 08:18:34 +0200
committerGitHub <noreply@github.com>2020-04-21 08:18:34 +0200
commit3ade772179eb0405ae6bc70cfc5e701b70d70e89 (patch)
tree1cd567393e5687f44b65157b8a9a7b7614392493 /docs/source/auto_examples/plot_free_support_barycenter.py
parent43b2190db71b1ccbeec8fddaae23ca6af220e1b5 (diff)
parente106537ee2fd5c3b2dac87789ed9f2dc40766a55 (diff)
Merge pull request #143 from PythonOT/doc_travis
[WIP] Update travis test and documentation (examples)
Diffstat (limited to 'docs/source/auto_examples/plot_free_support_barycenter.py')
-rw-r--r--docs/source/auto_examples/plot_free_support_barycenter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/source/auto_examples/plot_free_support_barycenter.py b/docs/source/auto_examples/plot_free_support_barycenter.py
index b6efc59..64b89e4 100644
--- a/docs/source/auto_examples/plot_free_support_barycenter.py
+++ b/docs/source/auto_examples/plot_free_support_barycenter.py
@@ -62,7 +62,7 @@ X = ot.lp.free_support_barycenter(measures_locations, measures_weights, X_init,
pl.figure(1)
for (x_i, b_i) in zip(measures_locations, measures_weights):
color = np.random.randint(low=1, high=10 * N)
- pl.scatter(x_i[:, 0], x_i[:, 1], s=b * 1000, label='input measure')
+ pl.scatter(x_i[:, 0], x_i[:, 1], s=b_i * 1000, label='input measure')
pl.scatter(X[:, 0], X[:, 1], s=b * 1000, c='black', marker='^', label='2-Wasserstein barycenter')
pl.title('Data measures and their barycenter')
pl.legend(loc=0)