{"id":13433289,"url":"https://github.com/glamp/bashplotlib","last_synced_at":"2025-05-14T15:06:40.078Z","repository":{"id":5922667,"uuid":"7142310","full_name":"glamp/bashplotlib","owner":"glamp","description":"plotting in the terminal","archived":false,"fork":false,"pushed_at":"2024-06-23T22:00:04.000Z","size":79081,"stargazers_count":1890,"open_issues_count":23,"forks_count":143,"subscribers_count":44,"default_branch":"master","last_synced_at":"2025-05-09T12:06:14.394Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/glamp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2012-12-13T04:01:10.000Z","updated_at":"2025-05-07T15:29:51.000Z","dependencies_parsed_at":"2024-10-15T00:20:37.986Z","dependency_job_id":"c82cdfe2-1807-4b6c-bdfe-dd651c798979","html_url":"https://github.com/glamp/bashplotlib","commit_stats":{"total_commits":179,"total_committers":20,"mean_commits":8.95,"dds":0.5027932960893855,"last_synced_commit":"db4065cfe65c0bf7c530e0e8b9328daf9593ad74"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glamp%2Fbashplotlib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glamp%2Fbashplotlib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glamp%2Fbashplotlib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glamp%2Fbashplotlib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/glamp","download_url":"https://codeload.github.com/glamp/bashplotlib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254169133,"owners_count":22026208,"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-07-31T02:01:23.665Z","updated_at":"2025-05-14T15:06:40.062Z","avatar_url":"https://github.com/glamp.png","language":"Python","readme":"# bashplotlib\n*plotting in the terminal*\n\n\u003cimg src=\"examples/img/basichist.png\"\u003e\n\n## what is it?\nbashplotlib is a python package and command line tool for making basic plots in the terminal. It's a quick way to visualize data when you don't have a GUI. It's written in pure python and can quickly be installed anywhere using pip.\n\n## installation\n### install with pip\n```\n$ pip install bashplotlib\n```\n### install from source\n```\n$ git clone git@github.com:glamp/bashplotlib.git\n$ cd bashplotlib\n$ python setup.py install\n```\n\nEither method will install the bashplotlib python package and will also add \u003ccode\u003ehist\u003c/code\u003e and \u003ccode\u003escatter\u003c/code\u003e \nto your python scripts folder. This folder should be on your path (add it if it's not).\n\n## features\n\n- quick plotting from the command line\n- customize the color, size, title, and shape of plots\n- pipe data into plots with stdin\n\n\n## usage\n### command line\n\u003ccode\u003ehist\u003c/code\u003e takes input from either stdin or specified using the -f parameter. Input should be a single column of numbers.\n\u003cimg src=\"examples/img/histhelp.png\"\u003e\n\u003ccode\u003escatter\u003c/code\u003e takes x and y coordinates as input form either a comma delimited file using -f or from 2 different files using -x and -y.\n\u003cimg src=\"examples/img/scatterhelp.png\"\u003e\n\n### in python\nIf you want to use bashplotlib from python, just import histogram and scatterplot.\n```\nfrom bashplotlib.scatterplot import plot_scatter\n```\n\u003cimg src=\"examples/img/scatterplothelp.png\"\u003e\n\n```\nfrom bashplotlib.histogram import plot_hist\n```\n\n\u003cimg src=\"examples/img/histogramhelp.png\"\u003e\n\n## examples\n```\n$ scatter --file data/texas.txt --pch .\n```\n\u003cimg src=\"examples/img/texas.png\"\u003e\n\n```\n$ hist --file data/exp.txt\n```\n\u003cimg src=\"examples/img/histogram.png\"\u003e\n\n```\n$ scatter -x data/x_test.txt -y data/y_test.txt\n```\n\u003cimg src=\"examples/img/scatter.png\"\u003e\n\n## todo\n\n- sideways numbers for x-axis of histograms\n- colors for individual points\n- line charts\n- trendlines\n\n\n","funding_links":[],"categories":["Python","MISC","Command-line Tools","资源列表","Command-line Interface Development","命令行界面开发","命令行工具","Command-line Interface Development [🔝](#readme)","Awesome Python"],"sub_categories":["Terminal","命令行工具","Command-line Tools"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglamp%2Fbashplotlib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglamp%2Fbashplotlib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglamp%2Fbashplotlib/lists"}