[HN Gopher] Feedgnuplot - plotting standard input in the shell
___________________________________________________________________
Feedgnuplot - plotting standard input in the shell
Author : dima55
Score : 11 points
Date : 2021-07-18 18:27 UTC (4 hours ago)
(HTM) web link (github.com)
(TXT) w3m dump (github.com)
| Per_Bothner wrote:
| Seems to work fine with DomTerm (https://domterm.org): In a
| DomTerm terminal, I typed the command at the start of the
| SYNOPSIS, replacing the --terminal option with --terminal
| domterm, and got a really nice plot.
|
| (The simplest way to try out DomTerm is using
| DomTerm-X.Y.Z.AppImage from
| https://github.com/PerBothner/DomTerm/releases.)
| [deleted]
| JensRantil wrote:
| I started using Feedgnuplot a few weeks ago after getting tired
| of the complexities of plotting the data output from AWK and
| other CLI utilities. My options were preciously to install
| Matplotlib (including Python virtualenv) or GNUplot, remembering
| the exact commands to read a CSV format, plot and output to a
| window/PNG. Or needing a spreadsheet. Feedgnuplot makes all this
| a breeze. I'm a happy man now.
| dima55 wrote:
| If you're massaging and plotting tabular text data, take a look
| at vnlog too: https://github.com/dkogan/vnlog/
|
| Works wonderfully in the shell, in conjunction with feedgnuplot
| for plotting.
| vietjtnguyen wrote:
| I use https://github.com/dkogan/vnlog/ and feedgnuplot for $WORK
| and it strikes a wonderful balance of simplicity and
| effectiveness for both quick data exploration and shell scripted
| data analysis and report generation.
|
| What took me a bit to grok at the start was how feedgnuplot's
| different flags change how it assigns semantic meaning to
| different data columns. So by default the first column is simply
| treated as data (y) while the implicit row index becomes the x
| axis. If you add --domain the first column becomes your domain
| (x) and the second column your data (y) allowing you to create a
| scatter plot. If you have multiple curves you can add --dataid
| with --domain which makes the first column x, the second column
| the id of the curve that point belongs to, and the third column
| the data itself (y). You can throw in more dimensions of
| visualization by mapping columns to colors, point size, or 3d.
|
| Typing it out it sounds more complicated than it really is.
| Combined with vnlog to easily select columns and filter rows it
| becomes a really powerful command line tool set.
___________________________________________________________________
(page generated 2021-07-18 23:02 UTC)