Skip to content

Commit

Permalink
update doc for realtime plot using cli example
Browse files Browse the repository at this point in the history
  • Loading branch information
guptarohit committed Jun 28, 2020
1 parent 181a19a commit aac4cd4
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,26 @@ Feed it data points via stdin:

..
Realtime graph for data points via stdin:

::

$ ping -i.2 google.com | grep -oP '(?<=time=).*(?=ms)' --line-buffered | asciigraph -r -h 10 -w 40 -c "realtime plot data (google ping in ms) from stdin"
8.26 ┤ ╭╮
7.77 ┤ ││
7.27 ┤ ││
6.78 ┤ ││ ╭╮
6.29 ┤ ╭╮ ╭╮ ││ ││
5.79 ┤ ││ ││ ││ │╰╮
5.30 ┤ ││ ││ ╭╮││ │ │ ╭
4.81 ┤ ││ ││ ││││ │ │ │
4.32 ┤ ╭╮ ││╭╯│ ╭╮ ││││ │ │ ╭╯
3.82 ┼╮│╰─╯╰╯ │╭──╯╰─╯╰╯╰──╮ ╭───╮╭───╯ ╰──╯
3.33 ┤╰╯ ╰╯ ╰─╯ ╰╯
realtime plot data (google ping in ms) from stdin

..

Acknowledgement
----------------
Expand Down

0 comments on commit aac4cd4

Please sign in to comment.