histogram bug

either, indistinguishably from the way it does now. The

    > problem is that with a linear axis we want the axis to start
    > at zero by default, but with a log axis we want it to start

With ymin at 1e-100, the default (linear) locator should choose 0 as
ymin. If it doesn't it looks like a bug. Is either the log or linear
autoscaler broken for bottom=something-really-small ?

JDH

John Hunter wrote:

    > either, indistinguishably from the way it does now. The
    > problem is that with a linear axis we want the axis to start
    > at zero by default, but with a log axis we want it to start

With ymin at 1e-100, the default (linear) locator should choose 0 as
ymin. If it doesn't it looks like a bug. Is either the log or linear
autoscaler broken for bottom=something-really-small ?

JDH

The problem is not the linear case but the log, and it is not a problem with the locators or with the autoscaling methods. Rather, for the log scale we want the autoscaling to ignore the bottom of the patches at 1e-100 and instead pick a lower value for plotting based on the tops of the patches (or the bottom of the errorbars, if present). This is what I have it doing now via the somewhat clumsy method of adjusting the dataLim after the patches have been added. To make the transition to a log scale work correctly after bar has been called with a linear scale, some such adjustment would have to be made. This is the sort of thing that could be done by registering a callback, but we don't have the machinery in place. Maybe this is a place where traits would help? I've never used them, but I seem to recall seeing that they include callback functionality.

Eric