How to use the kmapper.drawing.draw_matplotlib function in kmapper

To help you get started, we’ve selected a few kmapper examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github scikit-tda / kepler-mapper / _downloads / f11bec4c8f11fa29129f75a61064b3ca / plot_horse.py View on Github external
lens = mapper.fit_transform(data)


graph = mapper.map(lens,
                   data,
                   clusterer=sklearn.cluster.DBSCAN(eps=0.1, min_samples=5),
                   cover=km.Cover(30, 0.2))

mapper.visualize(graph,
                 path_html="output/horse.html",
                 custom_tooltips=np.arange(len(lens)))


km.drawing.draw_matplotlib(graph)
plt.show()