GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - milliams/plot: Command-line plotting tool written in Rust

BranchesTags
Open more actions menu

Latest commit

 

History

90 Commits
90 Commits

Folders and files

NameName
Last commit message
Last commit date
src
src
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
Cargo.lock
Cargo.lock
 
 
Cargo.toml
Cargo.toml
 
 
README.rst
README.rst
 
 

Repository files navigation

Plot

A command-line statistics and plotting tool.

plot works on input streams and so if you have a file called data.txt which looks like:

$ head -n4 data.txt
11.01821751894866
-3.862915996857989
4.293330805873133
2.6587850003804734

then you can plot a histogram of that with

$ cat data.txt | plot hist

which will output something like:

12-|                                   ----
   |                                   |  |
   |                       -------     |  |
   |                       |  |  |     |  |
   |                       |  |  |     |  |
   |                       |  |  |     |  |
   |                       |  |  |     |  |
   |                       |  |  |  ---|  |---
   |                       |  |  |  |  |  |  |
   |                       |  |  |  |  |  |  |
 8-|                       |  |  |  |  |  |  |---
   |                       |  |  |  |  |  |  |  |
   |                       |  |  |  |  |  |  |  |
   |                       |  |  |  |  |  |  |  |
   |                       |  |  |  |  |  |  |  |
   |                    ---|  |  |  |  |  |  |  |---
   |                    |  |  |  |  |  |  |  |  |  |
   |                 ---|  |  |  |--|  |  |  |  |  |
   |                 |  |  |  |  |  |  |  |  |  |  |
   |                 |  |  |  |  |  |  |  |  |  |  |
 4-|                 |  |  |  |  |  |  |  |  |  |  |        ----
   |                 |  |  |  |  |  |  |  |  |  |  |        |  |
   |                 |  |  |  |  |  |  |  |  |  |  |------  |  |
   |                 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
   |                 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
   |---        ----  |  |  |  |  |  |  |  |  |  |  |  |  |--|  |
   |  |        |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
   |  |  ----  |  |--|  |  |  |  |  |  |  |  |  |  |  |  |  |  |
   |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
   |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
  0+------------------------------------------------------------
       |           |           |          |           |
      -10         -5           0          5          10

Likewise, if you have a data file (or any pipeable stream) which has a two-column format like:

$ cat data2.txt
-3 2.3
-1.6 5.3
0.3 0.7
4.3 -1.4
6.4 4.3
8.5 3.7

then you can draw a scatter plot of data using

$ cat data2.txt | plot scatter

which outputs:

  |        o
  |
  |
4-|                                              o
  |                                                        o
  |
  |
  |
  |  o
2-|
  |
  |
  |                 o
  |
0-|
  |
  |
  |
  |                 o
  +------------------------------------------------------------
                   |                  |                  |
                   0                  4                  8

About

Command-line plotting tool written in Rust

Topics

command-linehistogramplotrust

Resources

Readme
Activity

Stars

26 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.