{"id":15735597,"url":"https://github.com/milliams/plot","last_synced_at":"2025-05-07T14:24:09.827Z","repository":{"id":57656370,"uuid":"82342161","full_name":"milliams/plot","owner":"milliams","description":"Command-line plotting tool written in Rust","archived":false,"fork":false,"pushed_at":"2017-03-09T20:37:32.000Z","size":73,"stargazers_count":25,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-07T14:23:57.872Z","etag":null,"topics":["command-line","histogram","plot","rust"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/milliams.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-17T22:06:16.000Z","updated_at":"2024-03-31T13:19:09.000Z","dependencies_parsed_at":"2022-08-26T05:51:01.686Z","dependency_job_id":null,"html_url":"https://github.com/milliams/plot","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milliams%2Fplot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milliams%2Fplot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milliams%2Fplot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milliams%2Fplot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/milliams","download_url":"https://codeload.github.com/milliams/plot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252892944,"owners_count":21820739,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["command-line","histogram","plot","rust"],"created_at":"2024-10-04T01:14:08.185Z","updated_at":"2025-05-07T14:24:09.803Z","avatar_url":"https://github.com/milliams.png","language":"Rust","readme":"Plot\n====\n\nA command-line statistics and plotting tool.\n\n``plot`` works on input streams and so if you have a file called ``data.txt`` which looks like:\n\n.. code-block:: bash\n\n    $ head -n4 data.txt\n    11.01821751894866\n    -3.862915996857989\n    4.293330805873133\n    2.6587850003804734\n\nthen you can plot a histogram of that with\n\n.. code-block:: bash\n\n    $ cat data.txt | plot hist\n\nwhich will output something like::\n\n    12-|                                   ----\n       |                                   |  |\n       |                       -------     |  |\n       |                       |  |  |     |  |\n       |                       |  |  |     |  |\n       |                       |  |  |     |  |\n       |                       |  |  |     |  |\n       |                       |  |  |  ---|  |---\n       |                       |  |  |  |  |  |  |\n       |                       |  |  |  |  |  |  |\n     8-|                       |  |  |  |  |  |  |---\n       |                       |  |  |  |  |  |  |  |\n       |                       |  |  |  |  |  |  |  |\n       |                       |  |  |  |  |  |  |  |\n       |                       |  |  |  |  |  |  |  |\n       |                    ---|  |  |  |  |  |  |  |---\n       |                    |  |  |  |  |  |  |  |  |  |\n       |                 ---|  |  |  |--|  |  |  |  |  |\n       |                 |  |  |  |  |  |  |  |  |  |  |\n       |                 |  |  |  |  |  |  |  |  |  |  |\n     4-|                 |  |  |  |  |  |  |  |  |  |  |        ----\n       |                 |  |  |  |  |  |  |  |  |  |  |        |  |\n       |                 |  |  |  |  |  |  |  |  |  |  |------  |  |\n       |                 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |\n       |                 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |\n       |---        ----  |  |  |  |  |  |  |  |  |  |  |  |  |--|  |\n       |  |        |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |\n       |  |  ----  |  |--|  |  |  |  |  |  |  |  |  |  |  |  |  |  |\n       |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |\n       |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |\n      0+------------------------------------------------------------\n           |           |           |          |           |\n          -10         -5           0          5          10\n\nLikewise, if you have a data file (or any pipeable stream) which has a two-column format like:\n\n.. code-block:: bash\n\n    $ cat data2.txt\n    -3 2.3\n    -1.6 5.3\n    0.3 0.7\n    4.3 -1.4\n    6.4 4.3\n    8.5 3.7\n\nthen you can draw a scatter plot of data using\n\n.. code-block:: bash\n\n    $ cat data2.txt | plot scatter\n\nwhich outputs::\n\n      |        o\n      |\n      |\n    4-|                                              o\n      |                                                        o\n      |\n      |\n      |\n      |  o\n    2-|\n      |\n      |\n      |                 o\n      |\n    0-|\n      |\n      |\n      |\n      |                 o\n      +------------------------------------------------------------\n                       |                  |                  |\n                       0                  4                  8\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilliams%2Fplot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmilliams%2Fplot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilliams%2Fplot/lists"}