Re: [matplotlib-devel] spy: ignore zero values in sparse matrix

2008-09-26 Thread Eric Firing
Tony S Yu wrote: > On Sep 26, 2008, at 2:28 PM, John Hunter wrote: > >> On Fri, Sep 26, 2008 at 12:39 PM, Tony S Yu <[EMAIL PROTECTED]> wrote: >> >>> +if all(nonzero == False): >>> +raise ValueError('spy cannot plot sparse zeros >>> matrix') >> Is raising an exc

Re: [matplotlib-devel] spy: ignore zero values in sparse matrix

2008-09-26 Thread Tony S Yu
On Sep 26, 2008, at 3:38 PM, John Hunter wrote: > On Fri, Sep 26, 2008 at 2:36 PM, Tony S Yu <[EMAIL PROTECTED]> wrote: >> >> Actually, now that I think about it: you could plot a trivially >> small image >> and just adjust the coordinates so that they correspond to the >> original >> matrix

Re: [matplotlib-devel] spy: ignore zero values in sparse matrix

2008-09-26 Thread Tony S Yu
On Sep 26, 2008, at 2:28 PM, John Hunter wrote: > On Fri, Sep 26, 2008 at 12:39 PM, Tony S Yu <[EMAIL PROTECTED]> wrote: > >> +if all(nonzero == False): >> +raise ValueError('spy cannot plot sparse zeros >> matrix') > > Is raising an exception the right choice

Re: [matplotlib-devel] spy: ignore zero values in sparse matrix

2008-09-26 Thread John Hunter
On Fri, Sep 26, 2008 at 12:39 PM, Tony S Yu <[EMAIL PROTECTED]> wrote: > +if all(nonzero == False): > +raise ValueError('spy cannot plot sparse zeros > matrix') Is raising an exception the right choice here -- why can't we plot an all zeros image? JDH ---

[matplotlib-devel] spy: ignore zero values in sparse matrix

2008-09-26 Thread Tony S Yu
When sparse matrices have explicit zero values, `axes.spy` plots those zero values. This behavior seems unintentional. For example, the following code should have a main diagonal with markers missing in the middle, but `spy` currently plots a full main diagonal. #~~~ import scipy.spa

Re: [matplotlib-devel] color mix

2008-09-26 Thread Pete Forman
Robert Kern <[EMAIL PROTECTED]> writes: > L*u*v* or its cylindrical-coordinate cousin L*t*theta* (or > LCH_uv). "Choosing Color Palettes for Statistical Graphics" is a > nice paper talking about an implementation in R (although they do > seem to misname L*t*theta* as HCL, which officially is d