John Pye wrote:
> Hi all
> 
> I have got some funny behaviour here that looks like a bug with the
> spy() function. Using the latest python-matplotlib 0.87.5 package on
> Ubuntu 6.10, I try:
> 
> $ ipython -pylab
> from scipy import io
> M = io.mmread('gd.mm')
> spy(M)
> M.shape
> M.nnz
> 
> It looks great and I get the necessary number of dots on my 'spy' plot.
> Then:
> 
> spy(M.todense())
> 
> This seems to plot only half of the points. At first I thought the
> 'todense' function must be to blame, however:
> 
> D = M.todense()
> for i in range(0,231):
>     for j in range(0,231):
>         if D[i,j]:
>             print i,j,D[i,j]
> 
> gave me the right data, so it really looks like a bug with spy().
> 
> And FWIW spy2(M) fails with an error, whereas spy2(D) shows the same bug
> as spy(D).
> 
> Is this something that has been fixed in the new 0.90 release?

The two versions of spy were merged into one, with some rewriting, in 
0.90.  Please give it a try and see if the problem persists.

Eric

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to