diff options
author | Vincent Rouvreau <10407034+VincentRouvreau@users.noreply.github.com> | 2021-04-19 09:51:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-19 09:51:06 +0200 |
commit | 73fa5b763a53179444304ccbe0583b616403bb0a (patch) | |
tree | 524f488bc9fbacc5ab646ad2bec081d0857bb76b /src | |
parent | cddad8c2d395168025cc2e99cc1bc0229214ad71 (diff) | |
parent | e72aacb4c9a83f22da50f71c3528458d6e539ef9 (diff) |
Merge pull request #472 from mglisse/color
Fix contradictory color
Diffstat (limited to 'src')
-rw-r--r-- | src/python/gudhi/clustering/tomato.py | 4 |
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() |