{"id":13541273,"url":"https://github.com/Euphrasiologist/nu_plugin_plot","last_synced_at":"2025-04-02T08:31:00.089Z","repository":{"id":65209387,"uuid":"582015914","full_name":"Euphrasiologist/nu_plugin_plot","owner":"Euphrasiologist","description":"Plot numeric lists in Nushell as part of a pipeline","archived":false,"fork":false,"pushed_at":"2024-04-25T13:07:29.000Z","size":77,"stargazers_count":37,"open_issues_count":6,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-25T14:29:43.505Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Euphrasiologist.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-12-25T10:11:13.000Z","updated_at":"2024-04-25T14:29:45.002Z","dependencies_parsed_at":"2023-11-28T16:46:24.601Z","dependency_job_id":"1de4f051-1906-4f6f-a746-2c8be48d80a7","html_url":"https://github.com/Euphrasiologist/nu_plugin_plot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Euphrasiologist%2Fnu_plugin_plot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Euphrasiologist%2Fnu_plugin_plot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Euphrasiologist%2Fnu_plugin_plot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Euphrasiologist%2Fnu_plugin_plot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Euphrasiologist","download_url":"https://codeload.github.com/Euphrasiologist/nu_plugin_plot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246781953,"owners_count":20832939,"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":[],"created_at":"2024-08-01T10:00:42.837Z","updated_at":"2025-04-02T08:30:59.734Z","avatar_url":"https://github.com/Euphrasiologist.png","language":"Rust","readme":"# `nu_plugin_plot`\n\nA small nu plugin to plot a list as a line graph.\n\n## Install\n\nNot yet on crates.io, so you'll have to clone this repository. I assume you have Rust, and are inside a nushell instance.\n\n```console\ngit clone https://github.com/Euphrasiologist/nu_plugin_plot\ncd nu_plugin_plot\n```\n```console\ncargo build --release\nplugin add ./target/release/nu_plugin_plot\nplugin use plot\n```\n```console\n# test commands\nplot -h\nhist -h\nxyplot -h\n```\n\n## Help\n\n`plot`, `hist`, and `xyplot` have very similar helps, so I'll print out just plot here.\n\n```console\nRender an ASCII plot from a list of values.\n\nUsage:\n  \u003e plot {flags}\n\nFlags:\n  -h, --help - Display the help message for this command\n  --width \u003cNumber\u003e - The maximum width of the plot.\n  --height \u003cNumber\u003e - The maximum height of the plot.\n  -t, --title \u003cString\u003e - Provide a title to the plot.\n  -l, --legend - Plot a tiny, maybe useful legend.\n  -b, --bars - Change lines to bars.\n  -s, --steps - Change lines to steps.\n  -p, --points - Change lines to points.\n```\n\n## Examples\nin the following, we define a bunch of sine wave as follows\n```nushell\nlet one = (seq 0.0 0.01 20.0 | math sin)\nlet two = (seq 1.0 0.01 21.0 | math sin)\nlet three = (seq 2.0 0.01 22.0 | math sin)\nlet four = (seq 3.0 0.01 23.0 | math sin)\n```\n\n### Basic plots\n- plot a single line\n```nushell\n$one | plot\n```\n```\n⡁   ⢀⡴⠋⠉⠳⣄                      ⢀⡴⠋⠉⠳⣄                      ⢀⡴⠋⠉⠳⣄                      ⢀⡄ 1.0\n⠄  ⢠⠏    ⠈⢦                    ⢠⠏    ⠈⢦                    ⢠⠏    ⠘⢦                    ⣠⠏\n⠂ ⢠⠏      ⠈⢧                  ⢠⠏      ⠈⢧                  ⢠⠃      ⠈⢧                  ⢰⠃\n⡁⢀⠏        ⠈⣇                ⢠⠏        ⠈⣆                ⢠⠏        ⠈⣆                ⢠⠇\n⠄⡞          ⠘⡆              ⢀⡞          ⠘⡆              ⢀⡎          ⠘⡄              ⢀⡎\n⡾⠁           ⠸⡄             ⡼            ⠹⡀             ⡼            ⢹⡀             ⡜\n⡁⠈ ⠁⠈ ⠁⠈ ⠁⠈ ⠁⠈⢳⠁⠈ ⠁⠈ ⠁⠈ ⠁⠈ ⣱⠋ ⠁⠈ ⠁⠈ ⠁⠈ ⠁⠈ ⢳⠈ ⠁⠈ ⠁⠈ ⠁⠈ ⠁⣸⠁⠁⠈ ⠁⠈ ⠁⠈ ⠁⠈ ⠁⢻ ⠁⠈ ⠁⠈ ⠁⠈ ⠁⠈⣸⠁⠈ ⠁⠈\n⠄              ⢧          ⢠⠇              ⠈⢧          ⢠⠃              ⠈⢇          ⢠⠃\n⠂              ⠈⣆        ⢀⡎                ⠘⣆        ⢀⠏                ⠘⣆        ⢠⠏\n⡁               ⠘⣆      ⢀⡞                  ⠘⣆      ⢀⡞                  ⠘⡄      ⢀⡞\n⠄                ⠘⣆    ⢀⡞                    ⠘⣆    ⢀⠞                    ⠙⣆    ⢠⠞\n⠂                 ⠈⠳⣄⣀⡴⠋                      ⠈⠳⣄⣀⡴⠋                      ⠈⠣⣄⣀⡴⠋           -1.0\n0.0                                                                                   2000.0\n```\n\n- plot two lines\n```nushell\n[$one $two] | plot\n```\n```\n⣡⠞⠉⠙⢦⡴⠋⠉⠳⣄                  ⣠⠞⠉⠙⢦⡴⠋⠉⠳⣄                  ⣠⠞⠉⠙⢦⡴⠋⠉⠳⣄                  ⣠⠞⠉⠙⢦⡄ 1.0\n⠅  ⢠⠏⠹⡄  ⠈⢦                ⡼⠁  ⢠⠏⠹⡄  ⠈⢦                ⡼⠁  ⢠⠏⠱⡄  ⠘⢦                ⡼⠁  ⣠⠏⠁\n⠂ ⢠⠏  ⠹⡄  ⠈⢧              ⡼⠁  ⢠⠏  ⠹⡄  ⠈⢧              ⡼⠁  ⢠⠃  ⠹⡄  ⠈⢧              ⡜   ⢰⠃\n⡁⢀⠏    ⠹⡀  ⠈⣇            ⡸⠁  ⢠⠏    ⠹⡀  ⠈⣆            ⡼⠁  ⢠⠏    ⢹⡀  ⠈⣆            ⡼⠁  ⢠⠇\n⠄⡞      ⢳⡀  ⠘⡆          ⢰⠃  ⢀⡞      ⢳   ⠘⡆          ⣰⠃  ⢀⡎      ⢳   ⠘⡄          ⣰⠃  ⢀⡎\n⡾⠁       ⢧   ⠸⡄        ⢠⠏   ⡼        ⢧   ⠹⡀        ⢠⠇   ⡼       ⠈⢇   ⢹⡀        ⢠⠇   ⡜\n⡁⠈ ⠁⠈ ⠁⠈ ⠙⣎ ⠁⠈⢳⠁⠈ ⠁⠈ ⠁⠈⡞⠁⠈ ⣱⠋ ⠁⠈ ⠁⠈ ⠁⠘⡆⠁⠈ ⢳⠈ ⠁⠈ ⠁⠈⢀⡟⠈ ⠁⣸⠁⠁⠈ ⠁⠈ ⠁⠈⠘⡇⠈ ⠁⢻ ⠁⠈ ⠁⠈ ⢁⡎ ⠁⠈⣸⠁⠈ ⠁⠈\n⠄         ⠸⡄   ⢧      ⡼   ⢠⠇          ⠸⡄  ⠈⢧      ⡼   ⢠⠃          ⠹⡄  ⠈⢇      ⡼   ⢠⠃\n⠂          ⢹⡀  ⠈⣆    ⣰⠃  ⢀⡎            ⢳⡀  ⠘⣆    ⣰⠁  ⢀⠏            ⢳⡀  ⠘⣆    ⣸⠁  ⢠⠏\n⡁           ⢳⡀  ⠘⣆  ⣰⠃  ⢀⡞              ⢳⡀  ⠘⣆  ⣰⠃  ⢀⡞              ⢳⡀  ⠘⡄  ⣰⠃  ⢀⡞\n⠄            ⠳⡀  ⠘⣆⣰⠃  ⢀⡞                ⢳⡀  ⠘⣆⣰⠃  ⢀⠞                ⢳⡀  ⠙⣆⡴⠃  ⢠⠞\n⠂             ⠙⢦⣀⣠⠞⠳⣄⣀⡴⠋                  ⠙⢦⣀⣠⠞⠳⣄⣀⡴⠋                  ⠙⢦⣀⣠⠞⠣⣄⣀⡴⠋           -1.0\n0.0                                                                                   2000.0\n```\n\n- plot four lines with a legend and title\n```nushell\n[$one $two $three $four] | plot -l -t \"Four sine lines!\"\n```\n```\nFour sine lines!\n⣥⠞⠉⠙⢦⡴⠋⠉⠳⣄         ⣠⠞⠉⠙⢦⡴⠋⠉⠳⣤⠞⠉⠙⢦⡴⠋⠉⠳⣄         ⣠⠞⠉⠙⢦⡴⠋⠉⠳⣤⠞⠉⠙⢦⡴⠋⠉⠳⣄         ⣠⠞⠉⠙⢦⡴⠋⠉⠳⣤⠞⠉⠙⢦⡄ 1.0\n⠍⢧ ⢠⠏⠹⡄  ⠈⢦       ⡴⠃  ⢠⠎⠹⡄ ⡼⠉⢧ ⢠⠏⠹⡄  ⠈⢦       ⡴⠁  ⢠⠏⠹⡄ ⡼⠉⢧ ⢠⠏⠱⡄  ⠘⢦       ⡴⠁  ⢠⠏⠹⡄ ⡼⠉⢦ ⣠⠏⠁\n⠂ ⢣⠏  ⠹⡄  ⠈⢧     ⡼⠁  ⢠⠏  ⠘⡼⠁ ⠈⢧⠏  ⠹⡄  ⠈⢧     ⡼⠁  ⢠⠏  ⠹⡼⠁ ⠈⢧⠃  ⠹⡄  ⠈⢧     ⡼⠁  ⢠⠏  ⠹⡜  ⠈⢷⠃\n⡁⢀⠏⢧   ⠹⡀  ⠈⣇   ⣰⠃  ⢀⡎   ⡸⠹⡄ ⢠⠏⢧   ⠹⡀  ⠈⣆   ⣰⠁  ⢀⠏   ⡼⠹⡄ ⢠⠏⢇   ⢹⡀  ⠈⣆   ⣸⠁  ⢀⠏   ⡼⠹⡀ ⢠⠏⣇\n⠄⡞ ⠘⣆   ⢳⡀  ⠘⡆ ⢠⠇   ⡞   ⢰⠃ ⢱⣀⡞ ⠘⣆   ⢳   ⠘⡆ ⢰⠃   ⡞   ⣰⠃ ⢳⣀⡎ ⠘⡆   ⢳   ⠘⡄ ⢰⠃   ⡞   ⣰⠃ ⢳⢀⡎ ⠘⡆\n⣿⠁  ⠸⡄   ⢧   ⠸⣄⡏   ⡸⠁  ⢠⠏   ⣿   ⠸⡄   ⢧   ⠹⣀⠏   ⡼   ⢠⠇   ⣿   ⠸⡄  ⠈⢇   ⢹⣀⠏   ⡼   ⢠⠇   ⣿   ⠹⡀\n⡉⣏ ⠁⠈⢹⡁⠈ ⠙⣎ ⠁⠈⣿⠁⠈ ⢱⠋ ⠁⠈⡞⠁⠈ ⣱⠋⣆⠁⠈ ⢳⡈ ⠁⠘⡆⠁⠈ ⣿⠈ ⠁⢸⠃⠁⠈⢀⡟⠈ ⠁⣸⠉⣇⠈ ⠁⢻ ⠁⠈⠘⡇⠈ ⠁⣿ ⠁⠈⣰⠃⠈ ⢁⡎ ⠁⠈⣸⠙⣎ ⠁⠈⠁\n⠄⠘⡄   ⢧   ⠸⡄ ⣸⠁⢧ ⢀⠏   ⡼   ⢠⠇ ⠘⡄   ⢧   ⠸⡄ ⡸⠉⢧ ⢠⠇   ⡼   ⢠⠃ ⠸⡄   ⢧   ⠹⡄ ⡼⠈⢇ ⢠⠇   ⡼   ⢠⠃ ⠸⡄\n⠂ ⠹⡄  ⠈⢇   ⢹⣰⠃ ⠈⣆⡞   ⣰⠃  ⢀⡎   ⠹⡀  ⠈⣇   ⢳⣰⠃ ⠘⣆⡞   ⣰⠁  ⢀⠏   ⢹⡀  ⠈⣆   ⢳⣰⠃ ⠘⣆⡏   ⣸⠁  ⢠⠏   ⢱⡀\n⡁  ⢳⡀  ⠘⣆  ⢠⢳⡀  ⡞⣆  ⣰⠃  ⢀⡞     ⢳⡀  ⠘⣆  ⣰⢳⡀ ⢀⡞⣆  ⣰⠃  ⢀⡞     ⢳⡀  ⠘⣆  ⣰⢳⡀ ⢀⡞⡄  ⣰⠃  ⢀⡞     ⢳⡀\n⠄   ⠱⡄  ⠘⢦⣠⠋ ⠳⣀⡞ ⠘⣆⣰⠃  ⢀⡞       ⠳⡄  ⠘⣆⣰⠃ ⢳⣀⡞ ⠘⣆⣰⠃  ⢀⠞       ⢳⡀  ⠘⣆⣰⠃ ⢳⣀⡞ ⠙⣆⡴⠃  ⢠⠞       ⢳⡀\n⠂    ⠙⢦⣀⣠⠜⠳⣄⣀⡴⠛⢦⣀⣠⠞⠳⣄⣀⡴⠋         ⠙⢦⣀⣠⠞⠳⣄⣀⡴⠛⢦⣀⣠⠞⠳⣄⣀⡴⠋         ⠙⢦⣀⣠⠞⠳⣄⣀⡴⠛⢦⣀⣠⠞⠣⣄⣀⡴⠋           -1.0\n0.0                                                                                   2000.0\nLine 1: --- Line 2: --- Line 3: --- Line 4: ---\n```\n\n### Bivariate 'xyplot'\n\u003e **Note**  \n\u003e input must be a two element nested list\n\n- make a nice ellipse\n```nushell\n[$one $two] | xyplot\n```\n```\n                                            ⡁⢀⣀⣀⣀⡤⠤⠤⠤⠤⠖⠒⠒⠒⠒⠒⠚⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠒⠒⠒⠒⠦⠤⠤⣀⣀      1.0\n                                 ⢀⣀⣀⡤⠤⠤⠖⠒⠒⠋⠉⠍⠁                                      ⠈⠉⠓⠦⣀\n                        ⢀⣀⣠⠤⠤⠒⠒⠋⠉⠉          ⠂                                           ⠘⡆\n                 ⢀⣀⡤⠤⠒⠒⠉⠉                   ⡁                                           ⣰⠃\n            ⣀⡤⠴⠒⠋⠉                          ⠄                                        ⢀⡤⠞⠁\n       ⣀⡤⠔⠚⠉                                ⠂                                     ⣀⡤⠖⠉\n⠁⠈ ⢁⣨⠖⠋⠉ ⠁⠈ ⠁⠈ ⠁⠈ ⠁⠈ ⠁⠈ ⠁⠈ ⠁⠈ ⠁⠈ ⠁⠈ ⠁⠈ ⠁⠈ ⠁⠈⡁⠁⠈ ⠁⠈ ⠁⠈ ⠁⠈ ⠁⠈ ⠁⠈ ⠁⠈ ⠁⠈ ⠁⠈ ⠁⠈ ⠁⠈⢀⣡⠬⠖⠋⠉ ⠁⠈ ⠁⠈\n ⣠⠖⠋                                        ⠄                          ⢀⣀⡤⠴⠒⠋⠉\n⡼⠁                                          ⠂                   ⢀⣀⣠⠤⠖⠒⠋⠉\n⢧                                           ⡁          ⢀⣀⣀⡤⠤⠔⠒⠚⠉⠉\n⠈⠑⠦⣄⣀                                       ⣄⣀⣀⡤⠤⠤⠖⠒⠒⠋⠉⠉\n    ⠈⠉⠓⠒⠒⠦⠤⠤⠤⢤⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣠⠤⠤⠤⠤⠤⠤⠔⠒⠒⠒⠒⠉⠉⠉⠉⠂                                              -1.0\n-1.0                                                                                  1.0\n```\n\n- bivariate line plot and diagonal dots!\n```nushell\n[(seq 1 100) (seq 1 100 | reverse)] | xyplot -p\n```\n```\n⠁⠁⠒⠠⠠⢀⢀                                                                                    100.0\n       ⠁⠁⠂⠂⠤⢀⢀\n              ⠈⠈⠂⠂⠂⠄⢄⢀\n                      ⠈⠈⠐⠂⠄⠄⡀⡀\n                             ⠈⠈⠐⠐⠠⠄⡀⡀⡀\n                                      ⠉⠐⠐⠠⠠⡀⡀\n                                             ⠁⠑⠐⠠⠠⢀⡀\n                                                    ⠁⠁⠁⠒⠠⠠⢀⢀\n                                                            ⠁⠁⠂⠂⠤⢀⢀\n                                                                   ⠈⠈⠂⠂⠄⠄⢄⢀\n                                                                           ⠈⠈⠐⠂⠄⠄⡀⡀\n                                                                                  ⠈⠈⠐⠐⠠⠄⡀⡀ 1.0\n1.0                                                                                   100.0\n```\n\n### Plot histograms\nin this section, we define the following lists\n```nushell\nlet r1 = (seq 1 100 | each { random int ..30})\nlet r2 = (seq 1 100 | each { random int ..30})\n```\n\n- compare two uniform distributions\n```nushell\n[$r1 $r2] | hist\n```\n```\n⡁                                                                     ⢰⢇                   12.0\n⠄                                                                     ⡎⠘⡄\n⠂      ⢀⠔⡇                                          ⢀⢾               ⢰⠁ ⠸⡀\n⡁     ⡠⠊ ⠸⡀                                         ⡜⠈⡆              ⡜   ⢱\n⠍⠑⠢⢄⣀⠔⠁   ⢇                                        ⡸  ⢱             ⢠⠃    ⢣\n⠂   ⠈     ⠘⡄     ⡔⢇      ⢀⠾⡀      ⢀⡾⡄      ⢠⠚⢄    ⢰⠁⡠⠚⡌⡆      ⢀     ⡜ ⡔⠉⠑⠒⠬⢆⣀\n⡁          ⢣   ⢀⠜ ⡈⢆     ⡎ ⢣      ⡼ ⢫⢆    ⡠⠃⢀⣀⠱⡀ ⢠⢃⠎  ⠈⢧     ⢠⠋⠢⡀  ⢀⠇⡜       ⠉⠒⠤⣀⣀⣀⣀⣀\n⠕⢄         ⠈⡆ ⢀⠎⢠⠊⠑⢌⢆   ⡜  ⠈⣇    ⣸⠃  ⢏⢢  ⡰⠁⡰⠁ ⠉⠚⠦⡞⠁    ⠘⣦    ⡎⢀⣀⠑⢄ ⡸⡜            ⠈⠑⠢⢄\n⠂⠈⠢⡀        ⢱⢠⠃⡔⠁  ⠈⠪⣆ ⡸    ⠸⡆  ⢰⡏   ⠈⡆⠣⡜ ⡰⠁            ⢣⠣⣀⡠⡜⠊⠁ ⠉⠚⠦⡟\n⡁  ⠑⢄⣀⣀⣀⣀⣀⡠⠔⠊⢧⠊      ⠙⢶⠁     ⢻⡄⢠⡻     ⠘⡄ ⡜              ⠸⡀ ⢰⠁\n⠄                            ⠈⡷⣮⠃      ⠱⡜                ⢇⢠⠃\n⡂⢀ ⡀⢀ ⡀⢀ ⡀⢀ ⡀⢀ ⡀⢀ ⡀⢀ ⡀⢀ ⡀⢀ ⡀⢀ ⡸⣎ ⡀⢀ ⡀⢀ ⡀⢀ ⡀⢀ ⡀⢀ ⡀⢀ ⡀⢀ ⡀⢀ ⡸⣎ ⡀⢀ ⡀⢀ ⡀⢀ ⡀⢀ ⡀⢀ ⡀⢀ ⡀⢀ ⡀⢀ ⡀⢀ ⡀⢀  0.0\n0.0                                                                                   30.0\n```\n\n- `-b` for bars\n```nushell\n[$r1 $r2] | hist -b\n```\n```\n⡁                                                                  ⡏⠉⠉⠉⡇                   12.0\n⠄                                                                  ⡇   ⡇\n⠂   ⢸⠉⠉⠉⠉⡇                                       ⡏⠉⠉⠉⢹             ⡇   ⡇\n⡁   ⢸    ⡇                                       ⡇   ⢸             ⡇   ⡇\n⡇   ⢸    ⡇                                       ⡇   ⢸             ⡇   ⡇\n⡏⠉⠉⠉⢹    ⡇   ⢸⠉⠉⠉⠉⡇   ⢸⠉⠉⠉⢹    ⡏⠉⠉⠉⢹    ⡏⠉⠉⠉⢹    ⡏⠉⠉⠉⢹    ⣀⣀⣀⣀⣀    ⡏⠉⠉⠉⣇⣀⣀⣀⣀\n⡇   ⢸    ⡇   ⢸⣀⣀⣀⣀⡇   ⢸   ⢸    ⡇   ⢸    ⣇⣀⣀⣀⣸    ⡇   ⢸    ⡇   ⢸    ⡇   ⡇   ⢸⣀⣀⣀⣀⣀⣀⣀⣀⣀\n⡇   ⢸    ⡇   ⢸    ⡇   ⢸   ⢸    ⡇   ⢸    ⡇   ⢸⣀⣀⣀⣀⡇   ⢸    ⣇⣀⣀⣀⣸    ⡇   ⡇   ⢸    ⣇⣀⣀⣀⣸\n⡇   ⢸    ⣇⣀⣀⣀⣸    ⡇   ⢸   ⢸    ⡇   ⢸⣀⣀⣀⣀⡇   ⢸    ⡇   ⢸⣀⣀⣀⣀⡇   ⢸⣀⣀⣀⣀⡇   ⡇   ⢸    ⡇   ⢸\n⣇⣀⣀⣀⣸⣀⣀⣀⣀⣇⣀⣀⣀⣸    ⣇⣀⣀⣀⣸   ⢸    ⡇   ⢸    ⡇   ⢸    ⡇   ⢸    ⡇   ⢸    ⡇   ⡇   ⢸    ⡇   ⢸\n⡇   ⢸    ⡇   ⢸    ⡇   ⢸   ⢸⣀⣀⣀⣀⡇   ⢸⣀⣀⣀⣀⡇   ⢸    ⡇   ⢸    ⡇   ⢸    ⡇   ⡇   ⢸    ⡇   ⢸\n⡇⢀ ⡀⢸ ⡀⢀ ⡇⢀ ⡀⢸ ⡀⢀ ⡇⢀ ⡀⢸ ⡀⢀⢸⣀⣀⣀⣀⣇ ⡀⢀⢸⡀⢀ ⡀⣇ ⡀⢀⢸⡀⢀ ⡀⣇ ⡀⢀⢸⣀⣀⣀⣀⣇ ⡀⢀⢸⡀⢀ ⡀⣇ ⡀⢀⡇⡀⢀ ⣸⢀ ⡀⢀⡇⡀⢀ ⣸⢀ ⡀⢀  0.0\n0.0                                                                                   30.0\n```\n\n- up the number of bins\n```nushell\n[$r1 $r2] | hist -b --bins 50\n```\n```\n⡁                                                                      ⡏⠉⡇                 8.0\n⠄  ⢠⠤⢤ ⡤⠤⡄                                                             ⡇ ⡇\n⠂  ⢸ ⢸ ⡇ ⡇                                                             ⡇ ⡇\n⡁  ⢸ ⢸ ⡇ ⡇                                        ⡏⢹                   ⡇ ⡇ ⡏⢹\n⡄  ⢸ ⢸ ⡇ ⡇                ⢠⠤⢤     ⡤⢤⠤⢤            ⡇⢸                   ⡧⠤⡇ ⡇⢸      ⢠⠤⢤\n⡇  ⢸ ⢸ ⡇ ⡇      ⣀⣀⣀⣀   ⣀⣀⡀⢸ ⢸     ⡇⢸ ⢸      ⢀⣀⣀ ⣀⣀⡇⢸ ⢀⣀⡀             ⢀⣀⡇ ⡇ ⡇⢸   ⣀⣀⡀⢸⣀⣸\n⡇  ⢸ ⢸ ⡇ ⡇      ⡇ ⡇⢸   ⡇ ⡇⢸ ⢸     ⡇⢸ ⢸      ⢸ ⢸ ⡇ ⡇⢸ ⢸ ⡇             ⢸ ⡇ ⡇ ⡇⢸   ⡇ ⡇⢸ ⢸\n⡗⠒⡆⢸ ⢸ ⡇ ⡗⢲ ⢰⠒⡆ ⡇ ⡗⢺   ⡇ ⡇⢸⠒⢺     ⡇⢸ ⢸ ⡖⠒⡖⢲ ⢸⠒⢺ ⡇ ⡗⢺ ⢸ ⡇ ⡖⢲ ⢰⠒⢲⠒⡆ ⡖⢲ ⢸ ⡇ ⡇ ⡇⢸   ⡗⠒⡇⢸ ⢸⠒⡆\n⡇ ⡇⢸⣀⣸ ⡇ ⣇⣸ ⢸⣀⡇ ⡇ ⡇⢸ ⢀⣀⣇⣀⡇⢸ ⢸     ⣇⣸⣀⣸ ⡇ ⣇⣸ ⢸ ⢸ ⡇ ⡇⢸ ⢸ ⡇ ⡇⢸ ⢸ ⢸ ⡇ ⡇⢸ ⢸⣀⡇ ⡇ ⡇⢸ ⢀⣀⡇ ⡇⢸ ⢸ ⡇\n⡇ ⡇⢸ ⢸ ⡇ ⡇⢸ ⢸ ⡇ ⡇ ⡇⢸ ⢸ ⡇ ⡇⢸ ⢸     ⡇⢸ ⢸ ⡇ ⡇⢸ ⢸ ⢸ ⡇ ⡇⢸ ⢸ ⡇ ⡇⢸ ⢸ ⢸ ⡇ ⡇⢸ ⢸ ⡇ ⡇ ⡇⢸ ⢸ ⡇ ⡇⢸ ⢸ ⡇\n⡇ ⡇⢸ ⢸ ⡇ ⡇⢸ ⢸ ⡇ ⡗⠒⡇⢸ ⢸ ⡇ ⡇⢸ ⢸ ⢰⠒⡆ ⡇⢸ ⢸ ⡗⠒⡇⢸ ⢸ ⢸ ⡇ ⡇⢸ ⢸ ⡇ ⡇⢸ ⢸ ⢸⠒⡇ ⡇⢸ ⢸ ⡇ ⡇ ⡇⢸ ⢸⠒⡇ ⡇⢸ ⢸ ⡇\n⡇⢀⣇⣸⢀⢸⣀⣇⣀⡇⢸⣀⣸⢀⣇⣀⣇ ⡇⢸⣀⣸⢀⡇⡀⣇⣸⡀⢸⣀⣸⣀⣇⣀⣇⢸⡀⢸⣀⡇⢀⡇⣸⣀⣸⡀⢸⣀⡇⢀⡇⣸⣀⣸⡀⣇⣀⣇⣸⣀⣸⢀⢸⡀⣇⣀⡇⢸⣀⣸⢀⡇⡀⣇⣀⡇⢸⣀⣸⢀⡇⡀⣇⣸⡀⢸ ⡇⢀  0.0\n0.0                                                                                   30.0\n```\n\n### If you've got R installed (\u0026 Rscript)\ngo crazy!\nforget `ggplot`!\n```nushell\nlet x = (Rscript -e \"cat(dnorm(seq(-4, 4, length=100)))\" | into string | split row ' ' | into decimal)\nlet y = (Rscript -e \"cat(dnorm(seq(-3, 6, length=100)))\" | into string | split row ' ' | into decimal)\n\n[$x $y] | plot -bl -t \"Two normal distributions\"\n```\n\n## Features\nPlot:\n\n- [x] a single numeric list\n- [x] a list of numeric lists\n  - [x] with colour support\n  - [x] with legend\n  - [x] with title\n- [x] scatter plots (as a list of two numeric lists)\n- [x] histogram (list rendered as a bar chart)\n- [ ] nested xyplot (i.e. multiple xyplots on the same plot...)\n- [ ] records..?\n\nPlease help me make this better! Submit issues/PR's, happy to chat.\n\nThe color rendering inside nushell is slightly confusing - you may notice I've included my own modified copies of `textplots` and `drawille` in the source code. This is because their color rendering method was not working inside the plugin - I still don't know why.\n","funding_links":[],"categories":["Plugins"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FEuphrasiologist%2Fnu_plugin_plot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FEuphrasiologist%2Fnu_plugin_plot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FEuphrasiologist%2Fnu_plugin_plot/lists"}