tenox7 / ttyplot

a realtime plotting utility for terminal/console with data input from stdin
Apache License 2.0
972 stars 45 forks source link

Please add options softmin and hardmin #22

Open emk2203 opened 5 years ago

emk2203 commented 5 years ago

During real-life use, it turns out that having minimum options would be convenient. Could they be added?

For something exceeding the max and min values, I propose to have a full bar with some marker for max and not drawing anything at all for min, to distinguish them.

gromgit commented 5 years ago

For something exceeding the max and min values, I propose to have a full bar with some marker for max and not drawing anything at all for min, to distinguish them.

I submitted PR #21 just before you posted, adding a -C (clipping char) option to draw bars with a different character when the plot's max value is exceeded. For example:

while true; do echo ${RANDOM} ${RANDOM}; sleep 1; done | ttyplot -2 -C @ -m 2000 -t "random values"
hartwork commented 9 months ago

@tenox7 can this be closed as fixed by #47 or is anything still missing?