victormocioiu / scipy-cluster

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

dendrogram display via matplotlib not working on Mac #17

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. compute clusters
2. execute 'dendrogram' command

What is the expected output? What do you see instead?

I expected to see a dendrogram drawn with Matplotlib.  Instead, there is a 
small delay while some 
kind of calculation takes place, but no output window appears.  Matplotlib 
works fine when 
invoked directly in other scripts on my system.

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

I've tried this on two Mac systems, a MacBookPro and a Mac Pro (both Intel 
processors).  OS 
version is 10.5.4.  Python installed on both is 2.5.1.  Matplotlib is 0.98pre.  
I've not tried it on 
Linux or Windows, and suspect it may be a platform issue.

Original issue reported on code.google.com by jwke...@gmail.com on 12 Sep 2008 at 2:31

GoogleCodeExporter commented 8 years ago
Have you tried matplotlib.pylab.show()? Are you running this in IPython? If so, 
are
you running it with or without -pylab?

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

GoogleCodeExporter commented 8 years ago
I am not running it in IPython, but as a script in the following Python version:

Python 2.5.1 (r251:54863, Feb  4 2008, 21:48:13) 
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin

I tried the matplotlib.pylab.show() command, and a python app 'opened' but 
didn't actually display anything.  I 
wonder if I'm just using the wrong syntax some how.  What would the full chain 
of events look like once I have 
a cluster object (Z)?

dendro = denrogram(Z)
matplotlib.pylab.show(dendro)

or

dendro.matplotlib.pylab.show()

or what exactly?

Thanks!

Original comment by jwke...@gmail.com on 13 Oct 2008 at 2:32

GoogleCodeExporter commented 8 years ago

The full chain of events should look something like:

matplotlib.pylab.figure()
dendrogram(Z)
matplotlib.pylab.show()

Were you able to run the Iris example?

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

GoogleCodeExporter commented 8 years ago
Please see http://www.soe.ucsc.edu/~eads/iris.html

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

GoogleCodeExporter commented 8 years ago
I have not heard back from you in 15 months so I will assume this issue is 
resolved.

Original comment by damian.e...@gmail.com on 16 Jan 2010 at 7:19

GoogleCodeExporter commented 8 years ago
Using figure() and show() worked for me on Ubuntu 10.10.  Can you add this 
information to the home page so that other people won't get confused when the 
dendrogram doesn't show up? Thanks.

Original comment by 8enm...@gmail.com on 2 Mar 2011 at 4:48