summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorvrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2018-05-23 08:45:19 +0000
committervrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2018-05-23 08:45:19 +0000
commit4b6d52d1a1b16f4026b9eb98495ac6fe1aa95281 (patch)
treee067c1962e4661042730b35beb7f28e058c23bdb /src
parent90bb34c0e81b57ed85131ccaa638f457338c9219 (diff)
Legend in the right bottom corner
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/python_2.1.0_fix_vincent@3453 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 221e39777dd55397a0260a2c83f590db610fdb76
Diffstat (limited to 'src')
-rwxr-xr-xsrc/cython/cython/persistence_graphical_tools.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cython/cython/persistence_graphical_tools.py b/src/cython/cython/persistence_graphical_tools.py
index 118fdd1a..4629018c 100755
--- a/src/cython/cython/persistence_graphical_tools.py
+++ b/src/cython/cython/persistence_graphical_tools.py
@@ -125,7 +125,9 @@ def plot_persistence_barcode(persistence=[], persistence_file='', alpha=0.6,
if legend:
dimensions = list(set(item[0] for item in persistence))
- plt.legend(handles=[mpatches.Patch(color=palette[dim], label=str(dim)) for dim in dimensions])
+ plt.legend(handles=[mpatches.Patch(color=palette[dim],
+ label=str(dim)) for dim in dimensions],
+ loc='lower right')
plt.title('Persistence barcode')
# Ends plot on infinity value and starts a little bit before min_birth
plt.axis([axis_start, infinity, 0, ind])