Skip to content

0.3.1.10084

Choose a tag to compare

@hanacryo-bot hanacryo-bot released this 01 Aug 15:46
· 16 commits to main since this release

tail-f_plot v0.3.1

Bug-fix release: X columns that are not timestamps, and gestures inside a stack.

X axis collapsed when the X column is not sorted

Auto-fit took the first and last row of the visible window as the X min/max. That is true for a timestamp column, but not for an arbitrary X — plotting resistance against a sample temperature that ramps up and down, for example. With a first row at 338.9 K and a last row at 299.9 K the axis was handed a reversed range and shrank to a sliver around their midpoint, so --max-x-range looked ignored and the rightmost data was off-screen at the same time.

Every place that assumed a sorted X now checks whether the column actually is one:

  • Auto-fit spans the column's real min/max.
  • --max-x-range walks back from the newest row to the first one outside the window. On a sorted X this is exactly the previous behaviour, so time-series plots are unaffected.
  • Hover snapping, the nearest-row lookup, and the "does this file draw a line here" test scan the visible range instead of binary-searching it.

Zoom inside a stack rescaled every sub-plot's Y

A wheel zoom, box zoom, click zoom-out, or pan re-applied the whole stack's previous bounds, so a gesture moved the Y range of sub-plots the cursor was nowhere near. With Auto-X/Auto-Y on (the default), the first gesture after opening a window was undone entirely.

X and Y are now pinned separately: the gesture's X goes to every sub-plot because the axis is linked, and only the sub-plot under the cursor changes its Y.

Two related fixes:

  • Auto-X on its own (or Auto-Y on its own) forced the other axis back to its previous value every frame, which silently blocked zooming and panning that axis.
  • Scrolling with the cursor over a legend zoomed the plot but was not recognised as a gesture, so the next frame's auto-fit erased the zoom.

Tooltip clipped at the sub-plot boundary

The tooltip was clipped to the hovered sub-plot's frame. A box near a stack boundary was cut off, which looked like it was being drawn underneath the neighbouring plot. It now overflows into the neighbouring sub-plots and is clamped to the stack area instead.

Other

  • Rows whose X cell parses as nan or inf are skipped. They cannot be plotted, and a non-finite X corrupted the sorted-X tracking and every range scan built on it.

Compatibility notes

None. Time-series plots render exactly as in v0.3.0; the changes only take effect for X columns that are not sorted, and for per-sub-plot Y behaviour inside a stack.

Win32 Signed Thumbprint

  • 1dddd32ca1ec85b6e676c66b8ceaa626ec905908