{"id":16871412,"url":"https://github.com/itsluketwist/plotly-utils","last_synced_at":"2025-08-14T19:13:02.214Z","repository":{"id":218383513,"uuid":"744090689","full_name":"itsluketwist/plotly-utils","owner":"itsluketwist","description":"Some simple patterns/defaults that I like to use alongside Plotly.","archived":false,"fork":false,"pushed_at":"2024-01-19T19:53:59.000Z","size":70,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-24T22:29:23.677Z","etag":null,"topics":["graphing","plotly"],"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/itsluketwist.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}},"created_at":"2024-01-16T15:52:32.000Z","updated_at":"2024-01-21T14:51:52.000Z","dependencies_parsed_at":"2024-01-21T17:00:04.878Z","dependency_job_id":null,"html_url":"https://github.com/itsluketwist/plotly-utils","commit_stats":null,"previous_names":["itsluketwist/plotly-utils"],"tags_count":0,"template":false,"template_full_name":"itsluketwist/python-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsluketwist%2Fplotly-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsluketwist%2Fplotly-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsluketwist%2Fplotly-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsluketwist%2Fplotly-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itsluketwist","download_url":"https://codeload.github.com/itsluketwist/plotly-utils/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244296525,"owners_count":20430333,"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":["graphing","plotly"],"created_at":"2024-10-13T15:08:33.721Z","updated_at":"2025-03-18T19:52:28.119Z","avatar_url":"https://github.com/itsluketwist.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# **plotly-utils**\n\n\n![check code workflow](https://github.com/itsluketwist/plotly-utils/actions/workflows/check.yaml/badge.svg)\n\n\n\u003cdiv\u003e\n    \u003c!-- badges from : https://shields.io/ --\u003e\n    \u003c!-- logos available : https://simpleicons.org/ --\u003e\n    \u003ca href=\"https://opensource.org/licenses/MIT\"\u003e\n        \u003cimg alt=\"MIT License\" src=\"https://img.shields.io/badge/Licence-MIT-yellow?style=for-the-badge\u0026logo=docs\u0026logoColor=white\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://www.python.org/\"\u003e\n        \u003cimg alt=\"Python 3\" src=\"https://img.shields.io/badge/Python_3-blue?style=for-the-badge\u0026logo=python\u0026logoColor=white\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://plotly.com/python/\"\u003e\n        \u003cimg alt=\"Plotly\" src=\"https://img.shields.io/badge/Plotly-3F4F75?style=for-the-badge\u0026logo=Plotly\u0026logoColor=white\" /\u003e\n    \u003c/a\u003e\n\u003c/div\u003e\n\n\n## *usage*\n\nSome simple patterns/defaults that I like to use alongside Plotly (my chosen graphing library).\n\nRequires plotly (obviously), once installed just import into your code and use, \nmostly alongside the `graph_objects` module.\n\n```python\nfrom random import randint\n\nimport plotly.graph_objects as go\n\nfrom plotly_utils import default_figure, write_and_display\n\n\nfigure = default_figure(\n    title=\"New Example Graph\",\n    data=go.Scatter(\n        x=list(range(10)),\n        y=[randint(1, 5) for _ in range(10)],\n        mode=\"lines+markers\"\n    )\n)\n\nwrite_and_display(\n    figure=figure,\n    name=\"example\",\n)\n\n```\n\n![Example Graph](assets/example.png)\n\n\n## *installation*\n\nInstall directly from GitHub, using pip:\n\n```shell\npip install git+https://github.com/itsluketwist/plotly-utils\n```\n\n## *development*\n\nClone the repository code:\n\n```shell\ngit clone https://github.com/itsluketwist/plotly-utils.git\n```\n\nOnce cloned, install the package locally in a virtual environment:\n\n```shell\npython -m venv venv\n\n. venv/bin/activate\n\npip install -e \".[dev]\"\n```\n\nInstall and use pre-commit to ensure code is in a good state:\n\n```shell\npre-commit install\n\npre-commit autoupdate\n\npre-commit run --all-files\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsluketwist%2Fplotly-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitsluketwist%2Fplotly-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsluketwist%2Fplotly-utils/lists"}