matplotlib - How can I save a dendrogram plot from scipy.cluster.hierarchy dendrogram as a file? -


as doing agglomerative clustering, retain dendrograms rendered later review.

as far can see, scipy.cluster.hierarchy.dendrogram() function not return matlplotlib figure object can saved. best way of achieving this?

found out catch current figure

mathplotlib.pyplot.gcf() 

and save

mathplotlib.pyplot.savefig(filename) 

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -