plotomics
    Preparing search index...

    Function domainTicks

    • Round ticks inside [lo, hi], a range that need not start at 0, such as the values of a colour bar: the multiples of a 1, 2 or 5 step, for about count intervals over the range. When that step leaves fewer than two ticks inside the range, a finer step is taken, so a range with any width gets at least two. A range with no width, or one too narrow for a round step to separate its values (0.3 to 0.1 + 0.2, say), is flat: it gets one tick, at its middle, and a step of 0. Print each tick with formatTick(value, step).

      Parameters

      • lo: number
      • hi: number
      • count: number = 4

      Returns { step: number; ticks: number[] }