From: Eric F. <ef...@ha...> - 2008-10-04 07:21:06
|
Tony S Yu wrote: > Hi Eric, > > Sorry for the late reply. > > On Sep 27, 2008, at 8:56 PM, Eric Firing wrote: > >> Actually, I think the most logical thing would be to let the default >> None give the old behavior, and require precision=0 to get the new >> behavior. What do you think? Is it OK if I make this change? It >> is more consistent with the old behavior. > > I'm ambivalent about this change. On one hand, I think it makes a lot > more sense to have None give the old behavior and precision=0 to > ignore zero values in the sparse array (then precision would be > consistent for finite values and for zero). > > On the other hand, I think ignoring zero values should be the default > behavior for sparse arrays (although, I definitely agree there should > be the option to plot all assigned values). > > Would it be possible to make the change you suggest and also change > the default precision value to 0? (see diff below) This change would > also allow you to remove a lot of the special handling for > precision=None, since precision=0 gives the same result (I didn't go > this far in the diff below). Good point. I made that change, but then made precision='present' be the value for sparse arrays to show all filled cells. precision=None is deprecated, but converted to 0. Eric |