diff options
author | Vincent Rouvreau <10407034+VincentRouvreau@users.noreply.github.com> | 2022-11-09 10:25:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-09 10:25:46 +0100 |
commit | f79f270b03fea51e67a71dbf9acea4103e7227b9 (patch) | |
tree | c2a2fa21501675540d65678243edae0188dff6df | |
parent | aa2dd7a0498594229fd828079bc069d71bbba59a (diff) | |
parent | 454ef5370d5a188cd303c497ed473df9aac81708 (diff) |
Merge pull request #721 from mglisse/use-fetch
Use fetch_spiral_2d in the doc
-rw-r--r-- | src/python/doc/clustering.rst | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/python/doc/clustering.rst b/src/python/doc/clustering.rst index c5a57d3c..62422682 100644 --- a/src/python/doc/clustering.rst +++ b/src/python/doc/clustering.rst @@ -17,9 +17,8 @@ As a by-product, we produce the persistence diagram of the merge tree of the ini :include-source: import gudhi - f = open(gudhi.__root_source_dir__ + '/data/points/spiral_2d.csv', 'r') - import numpy as np - data = np.loadtxt(f) + from gudhi.datasets.remote import fetch_spiral_2d + data = fetch_spiral_2d() import matplotlib.pyplot as plt plt.scatter(data[:,0],data[:,1],marker='.',s=1) plt.show() |