Add options --ymin and --ymax for setting vertical scale - #555
Add options --ymin and --ymax for setting vertical scale#555ryanmjacobs wants to merge 1 commit into
--ymin and --ymax for setting vertical scale#555Conversation
Option `-0` is an alias for `--ymin=0`
|
This is great, thanks @ryanmjacobs . Much much easier to visually gauge how ping is going without the axis jumping all over the place. Small bug: with --ymin=0 and --ymax=100, the top y-axis label is 94.284 ms, and the value bops around for the first few pings.
Also, the usage section in readme.md needs to be updated to include your new options. Great stuff! |
|
Hi, this looks great, I want to try this immediately. Can I just clone your branch @ryanmjacobs if this still takes time to be merged? |
|
Just saw these! Thanks for the review @bitwombat
Yeah that's a weird bug... I have no idea how the delay time could possibly affect the y-axis, but it clearly does. @work-apradana My systems have been using Local build should work fine. Just clone my fork and checkout the correct branch. |


Fixes #406.
I have been running a similar patch for a few months now. Having the y-axis start at zero is fairly important :) 1 I have been using the
-0flag pretty much all of the time.Finally got around to cleaning up my code. I'm not super familiar with Rust, so let me know it there are any changes needed to make the code more idiomatic.
--yminand--ymaxfor setting vertical scale-0is an alias for--ymin=0--ymin=0gping -0 127.0.0.1)Comparison (before=bottom, after=top)

gping -b10 --ymin 0 --ymax 500 3.80.0.0Footnotes
https://xkcd.com/2023/ ↩