{"id":15358746,"url":"https://github.com/atsushisakai/pycoolplot","last_synced_at":"2025-04-15T07:21:09.293Z","repository":{"id":62579474,"uuid":"135795144","full_name":"AtsushiSakai/PyCoolPlot","owner":"AtsushiSakai","description":"A cool plotting module on Python","archived":false,"fork":false,"pushed_at":"2022-08-21T01:45:25.000Z","size":90,"stargazers_count":32,"open_issues_count":3,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-28T17:47:43.933Z","etag":null,"topics":["matplotlib","python","python3","visualization"],"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/AtsushiSakai.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}},"created_at":"2018-06-02T06:54:20.000Z","updated_at":"2024-12-18T11:58:12.000Z","dependencies_parsed_at":"2022-11-03T21:00:48.155Z","dependency_job_id":null,"html_url":"https://github.com/AtsushiSakai/PyCoolPlot","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/AtsushiSakai%2FPyCoolPlot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AtsushiSakai%2FPyCoolPlot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AtsushiSakai%2FPyCoolPlot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AtsushiSakai%2FPyCoolPlot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AtsushiSakai","download_url":"https://codeload.github.com/AtsushiSakai/PyCoolPlot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249024024,"owners_count":21200010,"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":["matplotlib","python","python3","visualization"],"created_at":"2024-10-01T12:42:35.912Z","updated_at":"2025-04-15T07:21:09.275Z","avatar_url":"https://github.com/AtsushiSakai.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PyCoolPlot\n\nA cool plotting module in Python\n\n# What is this?\n\nThis is a plotting module in Python.\n\nRef:\n\n- [データ視覚化のデザイン \\#1｜Go Ando / THE GUILD｜note](https://note.mu/goando/n/neb6ea35f1da3)\n\n- [「データ視覚化のデザイン \\#1」をmatplotlibで実装する \\- Qiita](https://qiita.com/skotaro/items/cdb0732ad1ad2a4b6236)\n\n# Requirements\n\n- Python 3.6.x or higher\n\n- matplotlib\n\n- numpy\n\n- pandas\n\n\n# Download\n\n## Using pip\n\n\u003e$ pip install PyCoolPlot\n\nPyPI page:\n\n- [PyCoolPlot · PyPI](https://pypi.org/project/PyCoolPlot/#description)\n\n\n## Manual install\n\n1. Install Python 3.6.x.\n\n2. Clone or download as zip this repository. \n\n3. import pycoolplot.py\n\n# How to use\n\nThe sample code might be helpful:\n\n- [PyCoolPlot/sample\\.py](https://github.com/AtsushiSakai/PyCoolPlot/blob/master/sample.py)\n\n## import\n\nIf you use pip to install PyCoolPlot, you can import it like:\n\n\tfrom pycoolplot import pycoolplot\n\n\n## Horizontal bar plot\n\nYou can plot a beautiful horizontal bar plot like:\n\n    data = [1000, 2000, 10000]\n    index = [\"A\", \"B\", \"C\"]\n    pycoolplot.horizontal_bar(index, data)\n    pycoolplot.plt.show()\n\nYou will see:\n\n![1](https://github.com/AtsushiSakai/PyCoolPlot/raw/master/imgs/1.png)\n\nIf you want a rate bar plot, you can set rate\\_graph is True like:\n\n    data = [1000, 2000, 10000]\n    index = [\"A\", \"B\", \"C\"]\n    pycoolplot.horizontal_bar(index, data, rate_graph=True)\n    pycoolplot.plt.show()\n\n\nYou will see:\n\n![2](https://github.com/AtsushiSakai/PyCoolPlot/raw/master/imgs/2.png)\n\n## Line graph\n\nYou can plot a beautiful line graph like:\n\n    data2 = [[970, 1010, 1015, 1008],\n             [975, 1020, 1002, 1035],\n             [975, 985, 995, 999]]\n    index2 = ['Toyota', 'VW', 'GM']\n    columns = [2013, 2014, 2015, 2016]\n    ylabel = \"Number\"\n    xlabel = \"Year\"\n    pycoolplot.line_graph(data2, index2, columns, xlabel,\n                          ylabel, xtick=1, ytick=25)\n    pycoolplot.plt.show()\n\nYou can get:\n\n![3](https://github.com/AtsushiSakai/PyCoolPlot/raw/master/imgs/3.png)\n\nIf you want to focus a line, you can set focus\\_id like:\n\n    data2 = [[970, 1010, 1015, 1008],\n            [975, 1020, 1002, 1035],\n            [975, 985, 995, 999]]\n    index2 = ['Toyota', 'VW', 'GM']\n    columns = [2013, 2014, 2015, 2016]\n    ylabel = \"Number\"\n    xlabel = \"Year\"\n    focus_id = 1  # the index of focusing line, in this case Toyota=0, VW=1, GM=2\n    pycoolplot.line_graph(data2, index2, columns, xlabel,\n                          ylabel, xtick=1, ytick=25, focus_id=focus_id)\n    pycoolplot.plt.show()\n\n![4](https://github.com/AtsushiSakai/PyCoolPlot/raw/master/imgs/4.png)\n\n## Time bar chart\n\nYou can plot a beautiful time series bar chart like:\n\n    data = pycoolplot.np.linspace(450, 990, 12) + \\\n        pycoolplot.np.random.randint(-50, 50, 12)\n    time_index = pycoolplot.pd.date_range('2017/5', periods=12, freq='MS')\n    pycoolplot.time_vertical_bar(data, time_index, xlabel=\"time\", ylabel=\"MAU\")\n    pycoolplot.plt.show()\n\n![5](https://github.com/AtsushiSakai/PyCoolPlot/raw/master/imgs/5.png)\n\n# License \n\nMIT\n\n# Author\n\n- [Atsushi Sakai](https://github.com/AtsushiSakai/) ([@Atsushi_twi](https://twitter.com/Atsushi_twi))\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatsushisakai%2Fpycoolplot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatsushisakai%2Fpycoolplot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatsushisakai%2Fpycoolplot/lists"}