{"id":16677035,"url":"https://github.com/deltamaniac/rascii","last_synced_at":"2025-09-03T08:40:39.126Z","repository":{"id":105839499,"uuid":"139155542","full_name":"DeltaManiac/rascii","owner":"DeltaManiac","description":"Simple plotting using ASCII","archived":false,"fork":false,"pushed_at":"2018-07-11T09:54:29.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-19T23:47:40.235Z","etag":null,"topics":["ascii","ascii-art","plotting","rustlang"],"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/DeltaManiac.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,"publiccode":null,"codemeta":null}},"created_at":"2018-06-29T13:54:40.000Z","updated_at":"2018-07-11T09:54:31.000Z","dependencies_parsed_at":"2023-03-29T20:35:35.038Z","dependency_job_id":null,"html_url":"https://github.com/DeltaManiac/rascii","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/DeltaManiac%2Frascii","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeltaManiac%2Frascii/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeltaManiac%2Frascii/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeltaManiac%2Frascii/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DeltaManiac","download_url":"https://codeload.github.com/DeltaManiac/rascii/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243352034,"owners_count":20276916,"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":["ascii","ascii-art","plotting","rustlang"],"created_at":"2024-10-12T13:24:57.098Z","updated_at":"2025-03-13T06:14:11.742Z","avatar_url":"https://github.com/DeltaManiac.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rasciigraph\n\nRascii graph is a rust implementation of [asciietch](https://github.com/linkedin/asciietch).\n\nIt follows the same principals of trying to draw graph with simple characters\n\nRuns on Rust nightly as it uses the [Iterator::step_by](https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.step_by) trait.\n\n## Examples\n\nPlotting from the first 7 integers in a decreasing order\n```rust\nrasciigraph::grapher::graph(vec![7.0, 6.0, 5.0, 4.5, 3.5, 2.7, 1_f64], None, None);\n```\n\n```\n* Upper Value :7.00 ****************************************************************************************************************************************************************\n-\n \\\n  \\\n   \\\n    \\\n     \\\n      |\n      -\n* Lower Value :1.00 * Mean:4.24* Std Dev:2.03***************************************************************************************************************************************\n```\n\nPlotting Sine Wave times ten\n```rust\nlet mut rand_vec = Vec::new();\n    for i in 0..360 {\n        rand_vec.push(f64::sin(i as f64) * 10.0);\n    }\n    rasciigraph::grapher::graph(rand_vec, None, None);\n\n```\n\n```\n* Upper Value :10.00 ***************************************************************************************************************************************************************\n       -  -  -               -  -  -  -            -  -  -  -            -  -  -  -            -  -  -  -            -  -  -  -            -  -  -  -               -  -  -\n    -  || || || -  -      -  || || || || -      -  || || || || -      -  || || || || -      -  || || || || -      -  || || || || -      -  || || || || -      -  -  || || || -\n--  || || || || || || --  || || || || || || --  || || || || || || --  || || || || || || --  || || || || || || --  || || || || || || --  || || || || || || --  || || || || || || --\n  | || || || || || |\\ | |/ | || || || || |\\ | |/ | || || || || |\\ | |/ | || || || || |\\ | |/ | || || || || |\\ | |/ | || || || || |\\ | |/ | || || || || |\\ | |/ | || || || || || | |-\n  |/ | || || || |\\ | || || | || || || |\\ | || || | || || || |\\ | || || | || || || |\\ | || || |/ | || || || | || || |/ | || || || | || || |/ | || || || | || || |/ | || || || |\\ | ||\n  || |/ | || || | || || || |/ | || || | || || || |/ | || || | || || || |/ | || || | || || || || | || || |\\ | || || || | || || |\\ | || || || | || || |\\ | || || || | || || |\\ | || ||\n  || || |/ | |\\ | || || || || |/ | |\\ | || || || || |/ | |\\ | || || || || |/ | |\\ | || || || || |/ | |\\ | || || || || |/ | |\\ | || || || || |/ | |\\ | || || || || |/ | |\\ | || || ||\n  || || || -/  || || || || || || -/  || || || || || || -/  || || || || || || -/  || || || || || || -/  || || || || || || -/  || || || || || || -/  || || || || || || -/  || || || ||\n  || -  -      -  || || || || -      -  || || || || -      -  || || || || -      -  || || || || -      -  || || || || -      -  || || || || -      -  || || || || -      -  -  || ||\n  -               -  -  -  -            -  -  -  -            -  -  -  -            -  -  -  -            -  -  -  -            -  -  -  -            -  -  -  -               -  -\n* Lower Value :-10.00 * Mean:0.02* Std Dev:7.07*************************************************************************************************************************************\n```\n\nPlotting some Random Values without height and width constraints\n```rust\nrasciigraph::grapher::graph(\n        vec![\n            7.2, 7.3, 7.4, 6.4, 5.2, 5.0, 5.1, 5.9, 5.7, 4.2, 3.3, 2.6, 72.0, 2.1, 2.3, 3.2, 6.2,\n            2.2, 1.1,\n    ],\n        None,\n        None,\n        );\n```\n\n```\n* Upper Value :72.00 ***************************************************************************************************************************************************************\n            -\n            ||\n            ||\n            ||\n            ||\n            ||\n            ||\n            ||\n            ||\n            ||\n            ||\n            ||\n            ||\n            ||\n            ||\n            ||\n            ||\n            ||\n---         ||\n   -------- || --\n           - -/  --\n* Lower Value :1.10 * Mean:8.13* Std Dev:15.59**************************************************************************************************************************************\n```\n\nPlotting some Random Values with height and width constraints\n\n```rust\nrasciigraph::grapher::graph(\n        vec![\n            7.2, 7.3, 7.4, 6.4, 5.2, 5.0, 5.1, 5.9, 5.7, 4.2, 3.3, 2.6, 72.0, 2.1, 2.3, 3.2, 6.2,\n            2.2, 1.1,\n        ],\n        Some(10),\n        Some(10),\n    );\n```\n\n\n```\n* Upper Value :72.00\n      -\n      ||\n      ||\n      ||\n      ||\n      ||\n      ||\n      ||\n--    ||\n  ---/ |-\n       - -\n* Lower Value :1.10 * Mean:8.13* Std Dev:15.59\n```\n\nMore examples [here](https://github.com/DeltaManiac/rascii/blob/master/examples/hello.rs)\n\nTo run examples execute \n```sh\ncargo run --example hello\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeltamaniac%2Frascii","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeltamaniac%2Frascii","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeltamaniac%2Frascii/lists"}