parv has asked for the wisdom of the Perl Monks concerning the following question:
Before I write a program to chart x-y values in plain text (again), does anyone know of any software|code to share which would spit out "scatter plot" on standard output (or in a file) in plain text (no image-graphs, Excel, LibreOffice, etc)?
I could not find something relevant here ("text plot"); on MetaCPAN; via DuckDuckGo.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Plaintext plot - existing sofware?
by bliako (Monsignor) on Jul 21, 2021 at 12:12 UTC | |
Programming on the shoulders of Giants:
bw, bliako | [reply] [d/l] [select] |
by parv (Parson) on Jul 21, 2021 at 13:57 UTC | |
Thanks for showing that gnuplot can produce a text plot. I got overwhelmed by the documentation about multitude of terminals; did not find that myself earlier. | [reply] |
by bliako (Monsignor) on Jul 22, 2021 at 10:08 UTC | |
my phd was a loooong gnuplot script and here is the time-honored japhy - my first one!
bw, bliako | [reply] [d/l] [select] |
by eyepopslikeamosquito (Archbishop) on Jul 22, 2021 at 13:34 UTC | |
by bliako (Monsignor) on Jul 22, 2021 at 14:34 UTC | |
Re: Plaintext plot - existing sofware?
by erix (Prior) on Jul 21, 2021 at 08:36 UTC | |
"ascii plot" on cpan seems to find useful modules (haven't tried any of them recently). (off-topic, just for the hack of it, here is a ascii-graph written in SQL: Mandelbrot Set) | [reply] |
by parv (Parson) on Jul 21, 2021 at 10:59 UTC | |
That SQL "query" result was glorious! :-] I thought I had tried ScatterPlot already; does not look like so now; will try soon and report. App::AsciiChart looked promising (missed earlier) but it generates its own Y values. | [reply] |
by parv (Parson) on Jul 21, 2021 at 11:58 UTC | |
ScatterPlot worked in the way I wanted to ... elapsed:day 5.3 ... | .... | ..... | .... | ..... | ....... | ....... size:T 0.0 ........ 20.7 0.0.........------------------------------------ (This & following 2 lines I have added myself.) X: amount of data transferred, TB; Y: number of days elapsed. Above is not very linear graph of data transferred via zfs send | ssh other-host zfs recv from one FreeBSD 12 host to another. After 5.3 days, 20.7 TB of data (total is 47.9 TB) had been transferred. As of now, linear regression suggests ~10 more days to finish. Polynomial curve fit (of degree 3) — which had matched the plot more than linear regression — estimates ~30 days. Yikes! | [reply] [d/l] |
Re: Plaintext plot - existing sofware?
by Fletch (Bishop) on Jul 21, 2021 at 13:17 UTC | |
If you don't mind an external dependency and can generate suitable JSON you could pipe to jp and let it do the heavy lifting.
The cake is a lie. | [reply] |
by parv (Parson) on Jul 21, 2021 at 13:54 UTC | |
Thanks for the suggestion of Go "jp". At the time I was looking for rather self-contained software. After not finding anything working then, I broke down to import data in Libreoffice which has been already present. | [reply] |
Re: Plaintext plot - existing sofware?
by hippo (Bishop) on Jul 21, 2021 at 09:08 UTC | |
Before I write a program to chart x-y values in plain text (again) If you have written it already, why would you write it again? Just use the code you already have. DRY. 🦛 | [reply] |
by Your Mother (Archbishop) on Jul 21, 2021 at 14:07 UTC | |
For my part the answer is: Because I’m going to do it right¹ this time. ¹ Where “right,” despite all intentions, only ends up meaning differently. | [reply] |
by parv (Parson) on Jul 21, 2021 at 10:19 UTC | |
Because I do not have the source anymore from last work. | [reply] |
A reply falls below the community's threshold of quality. You may see it by logging in. |