tenox7 / ttyplot

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

feature request: set minimum #42

Closed EpicWink closed 3 years ago

EpicWink commented 4 years ago

Option to set vertical axis minimum.

Currently, the minimum on the vertical axis is 0. If the value plotted fluctuates around a high value, a lot of the resolution of the fluctuations is lost due to most of the graph representing the baseline.

This is a proposal to have a command-line parameter to set the minimum of the vertical scale (similar to the maximum value, I suppose)

tenox7 commented 4 years ago

Thanks for this. Someone already asked about this before but was unclear of the details. This is a much better description of the problem.

What should ttyplot do if it receives a value lower than min? Should it draw some error indicator or just ignore it? Should I think of two flags softmin/hardmin like softmax/hardmax?

EpicWink commented 4 years ago

I always believe in keeping the API consistent, so yes, corresponding 'minimum' versions of -s (initial maximum / softmax) and -m (error-above maximum / hardmax)

bratekarate commented 3 years ago

I see that the PR for this issue was closed a while ago. Are there any plans to implement this/use the code from the closed PR?

tenox7 commented 3 years ago

Yeah I would, unsure why the PR was closed. Perhaps OP could shed some light on this?

EpicWink commented 3 years ago

This issue's OP has no coverage on the associated PR :)

tenox7 commented 3 years ago

the pr is merged!