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

Why can rails not find a route created by a helper? -

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -