summaryrefslogtreecommitdiff
path: root/src/python
diff options
context:
space:
mode:
authorVincent Rouvreau <10407034+VincentRouvreau@users.noreply.github.com>2021-04-19 09:51:06 +0200
committerGitHub <noreply@github.com>2021-04-19 09:51:06 +0200
commit73fa5b763a53179444304ccbe0583b616403bb0a (patch)
tree524f488bc9fbacc5ab646ad2bec081d0857bb76b /src/python
parentcddad8c2d395168025cc2e99cc1bc0229214ad71 (diff)
parente72aacb4c9a83f22da50f71c3528458d6e539ef9 (diff)
Merge pull request #472 from mglisse/color
Fix contradictory color
Diffstat (limited to 'src/python')
-rw-r--r--src/python/gudhi/clustering/tomato.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/python/gudhi/clustering/tomato.py b/src/python/gudhi/clustering/tomato.py
index fbba3cc8..d0e9995c 100644
--- a/src/python/gudhi/clustering/tomato.py
+++ b/src/python/gudhi/clustering/tomato.py
@@ -271,7 +271,7 @@ class Tomato:
l = self.max_weight_per_cc_.min()
r = self.max_weight_per_cc_.max()
if self.diagram_.size > 0:
- plt.plot(self.diagram_[:, 0], self.diagram_[:, 1], "ro")
+ plt.plot(self.diagram_[:, 0], self.diagram_[:, 1], "o", color="red")
l = min(l, self.diagram_[:, 1].min())
r = max(r, self.diagram_[:, 0].max())
if l == r:
@@ -283,7 +283,7 @@ class Tomato:
l, r = -1.0, 1.0
plt.plot([l, r], [l, r])
plt.plot(
- self.max_weight_per_cc_, numpy.full(self.max_weight_per_cc_.shape, 1.1 * l - 0.1 * r), "ro", color="green"
+ self.max_weight_per_cc_, numpy.full(self.max_weight_per_cc_.shape, 1.1 * l - 0.1 * r), "o", color="green"
)
plt.show()