[SciPy-dev] (no subject)

Fedor Baart fedor.baart at hccnet.nl
Sun Feb 17 19:28:36 EST 2002


I found a small inconsistency in the scipy/plt/plot_utility module in
the autoticks function.

419                    if is_base2(rng) and is_base2(upper) and rng > 4:
420                        if rng == 2: 
421                            interval = 1
422                        elif rng == 4: 
423                            interval = 4
424                        else: 
425                            interval = rng / 4 # maybe we want it 8
426                    else:
427                        interval = auto_interval((lower,upper))

The condition "and rng > 4" is inconsistent with rng==2 and rng==4.

Also




More information about the SciPy-Dev mailing list