Skip to content

[feature] hotkeys to change plot size and switch the scale mode for Y axis #49

Description

@kha84

I've prepared some small patch that will allow:

  • new hotkeys (+/-) to change the size of the plot - sometimes there are a lot of changes is happening with a given metric (ram, cpu, io, number of processes) in a short period of time, so compressing it to just 4 discreet points is not enough
  • a hotkey to change the Y scale from "automatic" (a baked-in option to asciigraph) to "absolute" (with a clear zero on a plot). asciigraph didn't have this feature, so I forked it and raised a PR with appropriate change - add yMin parameter to plot() for overriding Y-axis minimum nimbackup/asciigraph#1

Demo video:

Screencast.from.2026-05-04.17-03-22.webm

Code - main...kha84:ttop:dev-size-and-scale

Do you mind me to upstream this feature and raise a PR?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions