KeithTheEE / scipy-cluster

Automatically exported from code.google.com/p/scipy-cluster
Other
0 stars 0 forks source link

dendrogram image generation #18

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. dendrogram(Z)
2.
3.

What is the expected output? What do you see instead?
I expected to get an image of the dendrogram.
I'm getting just a dictionary containing the colors, coords, etc...
How one can get the image? I guess via matplotlib... I could not do it.

What version of the product are you using? On what operating system?
hcluster 0.1.9
Ubuntu

Original issue reported on code.google.com by fen...@gmail.com on 23 Sep 2008 at 6:25

GoogleCodeExporter commented 8 years ago
Are you running this in Ipython with or without the -pylab option?

Remember, you need to do a

  matplotlib.pylab.show()

if you are not running pylab.

To save the image to a file rather than displaying a GUI frame, do

  matplotlib.pylab.savefig("filename.png", format="png")

Please let me know if this resolves your issue.

Damian

Original comment by damian.e...@gmail.com on 10 Oct 2008 at 11:42

GoogleCodeExporter commented 8 years ago
Thanks Damian!

I did not know about the -pylab option... Now it works perfect!

Thanks again

Original comment by fen...@gmail.com on 10 Oct 2008 at 11:51

GoogleCodeExporter commented 8 years ago
Glad it worked! I will close this ticket.

Damian

Original comment by damian.e...@gmail.com on 20 Oct 2008 at 5:04

GoogleCodeExporter commented 8 years ago

Original comment by damian.e...@gmail.com on 20 Oct 2008 at 5:05