{"id":13869856,"url":"https://github.com/nicoguaro/matplotlib_styles","last_synced_at":"2026-02-12T06:39:57.948Z","repository":{"id":142639960,"uuid":"174381774","full_name":"nicoguaro/matplotlib_styles","owner":"nicoguaro","description":"Matplotlib style sheets allow to stylize plots easily.","archived":false,"fork":false,"pushed_at":"2024-06-10T03:04:11.000Z","size":1302,"stargazers_count":11,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-06T21:21:53.740Z","etag":null,"topics":["matplotlib","matplotlib-style-sheets"],"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/nicoguaro.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":"2019-03-07T16:31:12.000Z","updated_at":"2024-06-10T03:04:14.000Z","dependencies_parsed_at":"2024-01-16T07:23:27.211Z","dependency_job_id":"62fdac02-7d11-4301-8323-666a39e5c664","html_url":"https://github.com/nicoguaro/matplotlib_styles","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicoguaro%2Fmatplotlib_styles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicoguaro%2Fmatplotlib_styles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicoguaro%2Fmatplotlib_styles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicoguaro%2Fmatplotlib_styles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nicoguaro","download_url":"https://codeload.github.com/nicoguaro/matplotlib_styles/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226062930,"owners_count":17567925,"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","matplotlib-style-sheets"],"created_at":"2024-08-05T20:01:19.844Z","updated_at":"2026-02-12T06:39:57.942Z","avatar_url":"https://github.com/nicoguaro.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Matplotlib style sheets\n\nThis repository was inspired by a post on [my blog](https://nicoguaro.github.io/posts/matplotlib_styles/) related to\nthe use of style sheets on Matplotlib.  The main idea is to create a file with\nsome of the parameters that want to be defined.\n\n## How to use it?\nYou can use the URL for the style sheet in Python, as the example below.\n\n```python\nimport numpy as np\nimport matplotlib.pyplot as plt\n\nrepo = \"https://raw.githubusercontent.com/nicoguaro/matplotlib_styles/master\"\nstyle = repo + \"/styles/clean.mplstyle\"\nwith plt.style.context(style):\n    x = np.linspace(0, 4, 201)\n    cos = np.cos(np.pi*x)\n    sin = np.sin(np.pi*x)\n    plt.plot(x, sin, x, cos)\n    plt.xlabel(\"x\")\n    plt.ylabel(\"y\")\n    plt.savefig(\"sin_cos-ex.svg\")\n```\n\nYou should get the following result\n\n\u003cimg src=\"./img/sin_cos-ex.svg\"\n    alt=\"Example of use of style sheets\"\n    width=400\u003e\n\n## How to contribute?\n\nIf you want to add style sheets to the repository in some of the groups you can\ncreate a Pull Request with the new file under the folder ``styles``.\n\n## License\n\nStyle sheets and code are availabe under [MIT license](https://opensource.org/licenses/mit-license.php).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicoguaro%2Fmatplotlib_styles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnicoguaro%2Fmatplotlib_styles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicoguaro%2Fmatplotlib_styles/lists"}