{"id":16711153,"url":"https://github.com/ktorz/machination","last_synced_at":"2025-04-10T05:36:31.086Z","repository":{"id":56846523,"uuid":"264473989","full_name":"KtorZ/machination","owner":"KtorZ","description":"Plot charts as unicode strings in the console.","archived":false,"fork":false,"pushed_at":"2020-05-16T16:27:43.000Z","size":4224,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T06:54:35.605Z","etag":null,"topics":["console","haskell","histogram","plot","unicode"],"latest_commit_sha":null,"homepage":null,"language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KtorZ.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-16T16:03:44.000Z","updated_at":"2020-05-18T12:27:11.000Z","dependencies_parsed_at":"2022-09-09T01:00:20.818Z","dependency_job_id":null,"html_url":"https://github.com/KtorZ/machination","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/KtorZ%2Fmachination","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KtorZ%2Fmachination/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KtorZ%2Fmachination/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KtorZ%2Fmachination/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KtorZ","download_url":"https://codeload.github.com/KtorZ/machination/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248164478,"owners_count":21058152,"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":["console","haskell","histogram","plot","unicode"],"created_at":"2024-10-12T20:10:55.153Z","updated_at":"2025-04-10T05:36:31.061Z","avatar_url":"https://github.com/KtorZ.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cbig\u003e\u003cstrong\u003eMachination\u003c/strong\u003e\u003c/big\u003e\n\u003c/p\u003e\n\n\u003e A Haskell library for text plotting in the terminal.\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://hackage.haskell.org/package/machination\"\u003e\u003cimg src=\"https://img.shields.io/hackage/v/machination?style=for-the-badge\" /\u003e\u003c/a\u003e\n  \u003ca href='https://github.com/KtorZ/machination/actions?query=workflow%3A\"Continuous Integration\"'\u003e\u003cimg src=\"https://img.shields.io/github/workflow/status/KtorZ/machination/Continuous Integration?style=for-the-badge\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://ktorz.github.io/machination/coverage/hpc_index.html\"\u003e\u003cimg src=\"https://ktorz.github.io/machination/coverage/badge.svg\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Overview\n\n### Histograms\n\nPlot [histograms](https://en.wikipedia.org/wiki/Histogram) as unicode strings in the console. For example, one could plot answers and their frequencies to the question:\n\n_\"Who's your favorite metal band?\"_\n\n\n```hs\nimport Prelude\n\nimport Plot.Text.Histogram \n    ( Histogram (..), plot )\n\nmain :: IO ()\nmain = putStrLn $ do\n    plot $ Histogram\n        { width  = 80\n        , height = 24\n        , bins   =\n            [ ( \"Metallica\", 78 )\n            , ( \"Iron Maiden\", 61 )\n            , ( \"Slayer\", 16 )\n            , ( \"Dimmu Borgir\", 3 )\n            , ( \"Ghost\", 48 )\n            ]\n        }\n```\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\".github/histogram.png\" /\u003e\n\u003c/p\u003e\n\n\u003chr /\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://ktorz.github.io/machination/haddock\"\u003e:book: Documentation\u003c/a\u003e \n  |\n  \u003ca href=\"ChangeLog.md\"\u003e:floppy_disk: Changelog\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/KtorZ/machination/blob/master/LICENSE\"\u003e\u003cimg src=\".github/license.svg\"/\u003e\u003c/a\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fktorz%2Fmachination","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fktorz%2Fmachination","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fktorz%2Fmachination/lists"}