Robert Cimrman wrote:
[...]
> What could be done, though, is to raise an exception explaining that 
> sparse matrices and the image mode don't like each other; as it is, the 
> function spy3 just dies on asarray (should be st. like asarray( 
> Z.todense() ))

(I think it would be Z.toarray().)

Good point.  Alternatives would be to automatically switch it to plot 
mode, with a warning, or to automatically convert it.  Probably the 
former is the better of these two, and maybe your originally suggested 
exception is best of all.  What do you think?

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