summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorRĂ©mi Flamary <remi.flamary@gmail.com>2022-04-21 16:34:01 +0200
committerGitHub <noreply@github.com>2022-04-21 16:34:01 +0200
commiteccb1386eea52b94b82456d126bd20cbe3198e05 (patch)
tree9349635150893e4f6e6f15c3115135228b75bf80 /examples
parent486b0d6397182a57cd53651dca87fcea89747490 (diff)
[MRG] Release 8.2 (#365)
* release text and number * add examples in release fil build wheels * switch gallery to release * add much needed contributors file * debug circleci * une line of logos * working logo * back to stable sphinx galery
Diffstat (limited to 'examples')
-rw-r--r--examples/others/plot_logo.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/others/plot_logo.py b/examples/others/plot_logo.py
index 9414371..bb4f640 100644
--- a/examples/others/plot_logo.py
+++ b/examples/others/plot_logo.py
@@ -18,7 +18,7 @@ matplotlib and ploting teh solution of the EMD solver from POT.
# sphinx_gallery_thumbnail_number = 1
-# %%
+# %% Load modules
import numpy as np
import matplotlib.pyplot as pl
import ot
@@ -36,21 +36,21 @@ p2 = np.array([[1.5, 6], [2, 4], [2, 5], [1.5, 3], [0.5, 2], [.5, 1], ])
o1 = np.array([[0, 6.], [-1, 5], [-1.5, 4], [-1.5, 3], [-1, 2], [0, 1], ])
o2 = np.array([[1, 6.], [2, 5], [2.5, 4], [2.5, 3], [2, 2], [1, 1], ])
-# scaling and translation for letter O
+# Scaling and translation for letter O
o1[:, 0] += 6.4
o2[:, 0] += 6.4
o1[:, 0] *= 0.6
o2[:, 0] *= 0.6
-# letter T
+# Letter T
t1 = np.array([[-1, 6.], [-1, 5], [0, 4], [0, 3], [0, 2], [0, 1], ])
t2 = np.array([[1.5, 6.], [1.5, 5], [0.5, 4], [0.5, 3], [0.5, 2], [0.5, 1], ])
-# translatin the T
+# Translating the T
t1[:, 0] += 7.1
t2[:, 0] += 7.1
-# Cocatenate all letters
+# Concatenate all letters
x1 = np.concatenate((p1, o1, t1), axis=0)
x2 = np.concatenate((p2, o2, t2), axis=0)