{"id":23992850,"url":"https://github.com/nakurei/rei-preso-plot","last_synced_at":"2026-06-20T09:32:02.682Z","repository":{"id":65744243,"uuid":"598540184","full_name":"NakuRei/rei-preso-plot","owner":"NakuRei","description":"Python package for drawing graphs for presentation materials with matplotlib.","archived":false,"fork":false,"pushed_at":"2023-02-11T19:43:55.000Z","size":281,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T00:46:04.656Z","etag":null,"topics":["graph","matplotlib","plot","python3"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/rei-preso-plot/","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/NakuRei.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}},"created_at":"2023-02-07T10:19:44.000Z","updated_at":"2023-02-07T17:51:16.000Z","dependencies_parsed_at":"2023-03-04T11:15:46.349Z","dependency_job_id":null,"html_url":"https://github.com/NakuRei/rei-preso-plot","commit_stats":{"total_commits":5,"total_committers":2,"mean_commits":2.5,"dds":"0.19999999999999996","last_synced_commit":"33f6c7d763e7f2094c6bdd120af2341d8276d2c9"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NakuRei%2Frei-preso-plot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NakuRei%2Frei-preso-plot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NakuRei%2Frei-preso-plot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NakuRei%2Frei-preso-plot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NakuRei","download_url":"https://codeload.github.com/NakuRei/rei-preso-plot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240612553,"owners_count":19829027,"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":["graph","matplotlib","plot","python3"],"created_at":"2025-01-07T20:20:09.316Z","updated_at":"2026-06-20T09:32:02.640Z","avatar_url":"https://github.com/NakuRei.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rei-preso-plot\n\n[![Publish Python distributions to PyPI](https://github.com/NakuRei/rei-preso-plot/actions/workflows/publish-to-test-pypi.yml/badge.svg)](https://github.com/NakuRei/rei-preso-plot/actions/workflows/publish-to-test-pypi.yml)\n![License](https://img.shields.io/github/license/NakuRei/rei-preso-plot)\n\nPython package for drawing graphs for presentation materials with `matplotlib`.\n\n## Description\n\nA package for creating graphs suitable for presentation materials with `matplotlib`.\nThe created graph can be directly placed on a presentation slide with a nice design.\n\n## Requirement\n\n- Python 3.11.1\n- matplotlib 3.6.3\n\n## Installation\n\n```shell\npip install rei-preso-plot\n```\n\n## Usage\n\n### Using graph functions\n\nGraph functions.\nCan emphasize parts by adding color or embedding legends in line graphs.\nWhen passing `matplotlib.axes.Axes` to the argument ax, it returns the `matplotlib.axes.Axes`. Therefore, using the functions of `matplotlib`, you can specify the drawing range, etc., after these functions.\n\n| Function                       | Description                 |\n| :----------------------------- | :-------------------------- |\n| `reipresoplot.plot_line_graph` | Line graph drawing function |\n| `reipresoplot.plot_bar_graph`  | Bar graph drawing function  |\n\n| Code                                      | Graph                          |\n| :---------------------------------------- | :----------------------------- |\n| [for_line_graph.py][line_graph_code_link] | ![Line graph][line_graph_link] |\n| [for_bar_graph.py][bar_graph_code_link]   | ![Bar graph][bar_graph_link]   |\n\n[line_graph_link]: https://github.com/NakuRei/rei-preso-plot/raw/main/examples/using_graph_functions/result/plot_line_graph.png\n[line_graph_code_link]: https://github.com/NakuRei/rei-preso-plot/blob/main/examples/using_graph_functions/for_line_graph.py\n[bar_graph_code_link]: https://github.com/NakuRei/rei-preso-plot/blob/main/examples/using_graph_functions/for_bar_graph.py\n[bar_graph_link]: https://github.com/NakuRei/rei-preso-plot/raw/main/examples/using_graph_functions/result/plot_bar_graph.png\n\n### Using matplotlibrc files\n\nBy reading `matplotlibrc` files, you can customize the `matplotlib` style as a whole, i.e. without specifying it with `rcParams`, etc.\nFor details, see [Matplotlib documentation](https://matplotlib.org/stable/tutorials/introductory/customizing.html).\n\n| Function                                               | Description                                                |\n| :----------------------------------------------------- | :--------------------------------------------------------- |\n| `reipresoplot.use_line_graph_style_as_global_settings` | Use `matplotlibrc` file for line graphs as global settings |\n| `reipresoplot.use_bar_graph_style_as_global_settings`  | Use `matplotlibrc` file for bar graphs as global settings  |\n| `reipresoplot.get_line_graph_mpl_style_path`           | Get the path to the `matplotlibrc` file for line graphs    |\n| `reipresoplot.get_bar_graph_mpl_style_path`            | Get the path to the `matplotlibrc` file for bar graphs     |\n\nIf you want to apply the style globally to the entire graph plot, use `reipresoplot.use_XXX_graph_style_as_global_settings`.\n\n```python\nfrom matplotlib import pyplot as plt\nfrom reipresoplot import use_line_graph_style_as_global_settings\n\nuse_line_graph_style_as_global_settings()\n\nplt.plot(x, y)\nplt.show()\n```\n\nIf you want to use it temporarily, use a context manager.\n\n```python\nfrom reipresoplot import get_line_graph_mpl_style_path\n\nmpl_style_path: str = get_line_graph_mpl_style_path()\nwith plt.style.context(mpl_style_path):\n    plt.plot(x, y)\n    plt.show()\n```\n\n#### Line graph changes\n\nPlease refer to the code at [examples/using_matplotlibrc_files/for_line_graph.py](https://github.com/NakuRei/rei-preso-plot/blob/main/examples/using_matplotlibrc_files/for_line_graph.py) for line graph changes.\n\n|           Before            |           After           |\n| :-------------------------: | :-----------------------: |\n| ![Before][before_line_link] | ![After][after_line_link] |\n\n[before_line_link]: https://raw.githubusercontent.com/NakuRei/rei-preso-plot/main/examples/using_matplotlibrc_files/result/line_graph_before.png\n[after_line_link]: https://raw.githubusercontent.com/NakuRei/rei-preso-plot/main/examples/using_matplotlibrc_files/result/line_graph_after.png\n\n#### Bar graph changes\n\nPlease refer to the code at [examples/using_matplotlibrc_files/for_bar_graph.py](https://github.com/NakuRei/rei-preso-plot/blob/main/examples/using_matplotlibrc_files/for_bar_graph.py) for bar graph changes.\n\n|           Before           |          After           |\n| :------------------------: | :----------------------: |\n| ![Before][before_bar_link] | ![After][after_bar_link] |\n\n[before_bar_link]: https://raw.githubusercontent.com/NakuRei/rei-preso-plot/main/examples/using_matplotlibrc_files/result/bar_graph_before.png\n[after_bar_link]: https://raw.githubusercontent.com/NakuRei/rei-preso-plot/main/examples/using_matplotlibrc_files/result/bar_graph_after.png\n\n## Test\n\nYou can test graph drawing with Pytest.\n\n```shell\npytest\n```\n\n## Author\n\n[NakuRei](https://notes.nakurei.com/about/)\n\n## License\n\n© 2023 NakuRei\n\nThis software is released under the MIT License, see LICENSE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnakurei%2Frei-preso-plot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnakurei%2Frei-preso-plot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnakurei%2Frei-preso-plot/lists"}