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
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
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
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
---
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
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