Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/praetoriansentry/qplot
qplot is a simple/quick wrapper around gnuplot for easy command line plotting
https://github.com/praetoriansentry/qplot
Last synced: about 7 hours ago
JSON representation
qplot is a simple/quick wrapper around gnuplot for easy command line plotting
- Host: GitHub
- URL: https://github.com/praetoriansentry/qplot
- Owner: praetoriansentry
- Created: 2024-01-15T18:04:21.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-04-05T12:39:30.000Z (7 months ago)
- Last Synced: 2024-04-05T13:41:36.558Z (7 months ago)
- Language: Shell
- Size: 8.3 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
Awesome Lists containing this project
README
A simple wrapper around [[http://www.gnuplot.info/][gnuplot]] to make my life simpler.
* Examples
** Indexed Data
#+begin_src bash
./qplot -T "Indexed Data" -d testdata/free-memory-indexed.dat > examples/free-memory-indexed.png
#+end_src[[file:examples/free-memory-indexed.png]]
** Unindexed Dataset
#+begin_src bash
./qplot -T "Unindexed Data" -d testdata/iops-no-index -n > examples/iops-no-index.png
#+end_src[[file:examples/iops-no-index.png]]
** Timestamped Dataset
#+begin_src bash
./qplot -T "Timestamped Data" -d testdata/cpu-load-with-timestamp.dat -f "%s" > examples/cpu-load-with-timestamp.png
#+end_src[[file:examples/cpu-load-with-timestamp.png]]
** Multiple Columns
#+begin_src bash
awk -f pivot.awk testdata/paladin-utime.tsv > pivoted.txt
./qplot -T "Timestamped Multi-column" -d pivoted.txt -f "%s" -c 8 > examples/multiple-columns.png
#+end_src[[file:examples/multiple-columns.png]]
** Date Parsing
#+begin_src bash
./qplot -S "\t" -T "Block Heights" -X "DB Created At Time" -Y "Block Number" -d testdata/block-height.dat -F "%H:%M:%S" -f "%Y-%m-%d %H:%M:%S+00" > examples/date-parsing.png
#+end_src[[file:examples/date-parsing.png]]
** Dumb Terminal
#+begin_src bash
./qplot -T "Dummy Out" -F "%H:%M" -d testdata/cpu-load-with-timestamp.dat -f "%s" -t dumb
#+end_src#+begin_example
Dummy Out
180 +-----------------------------------------------------------------+
| + + + + + + + + |
| ** * |
175 |-+ ** *** ** +-|
| *** *** * ** * * |
| * ** ** * ** * |
170 |-+ * * * * * ** * +-|
| * * *** |
| * * * * * |
165 |-+* ** *** ** * +-|
| * ** * * * * ** |
| * **** ** ** |
160 |-+ * ** * * +-|
| * ** *** |
| ******* * |
155 |-+ * +-|
| |
| + + + + + + + + |
150 +-----------------------------------------------------------------+
19:10 19:15 19:20 19:25 19:30 19:35 19:40 19:45 19:50 19:55#+end_example
** Pretty Out
#+begin_src bash
./qplot -T "Dummy Out" -F "%H:%M" -d testdata/cpu-load-with-timestamp.dat -f "%s" -t cairolatex
#+end_src