{"id":16802754,"url":"https://github.com/mathause/mplotutils","last_synced_at":"2025-03-17T03:31:15.024Z","repository":{"id":266483704,"uuid":"897917129","full_name":"mathause/mplotutils","owner":"mathause","description":"helper functions for cartopy and matplotlib","archived":false,"fork":true,"pushed_at":"2024-12-04T15:47:27.000Z","size":1517,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-02-08T00:42:56.999Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"mpytools/mplotutils","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mathause.png","metadata":{},"created_at":"2024-12-03T13:19:47.000Z","updated_at":"2024-12-03T13:19:47.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mathause/mplotutils","commit_stats":null,"previous_names":["mathause/mplotutils"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathause%2Fmplotutils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathause%2Fmplotutils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathause%2Fmplotutils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathause%2Fmplotutils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mathause","download_url":"https://codeload.github.com/mathause/mplotutils/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243968857,"owners_count":20376459,"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":["cartopy","helper-functions","matplotlib","python3"],"created_at":"2024-10-13T09:40:34.681Z","updated_at":"2025-03-17T03:31:15.017Z","avatar_url":"https://github.com/mathause.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# mplotutils\n\n\u003e *helper functions for cartopy and matplotlib*\n\n## fix layout for cartopy axes and colorbars\n\nThis package solves two main problems for plots with maps created with cartopy. Because these plots have a fixed aspect ratio (1) colorbars will extend beyond the visible axes and (2) the distance between individual subplots will seemingly be random.\n\n**subplots**\n\nWithout mplotutils         |  With mplotutils\n:-------------------------:|:-------------------------:\n\u003cimg src=\"docs/example_no_mpu.png\" alt=\"Without mplotutils\" width=\"250\"/\u003e | \u003cimg src=\"docs/example_mpu.png\" alt=\"With mplotutils\" width=\"250\"/\u003e\n\nThe code to create the examples can be found in [docs/example.py](docs/example.py).\n\n\n**axes_grid**\n\nMatplotlib's [axes_grid](https://matplotlib.org/stable/users/explain/toolkits/axes_grid.html) can also display data with a fixed aspect ratio. However, the size of the figure will not be correct. mplotutils (from version 0.6) can also help with this\n\n| Axes grid - without mplotutils     | Axes grid - with mplotutils |\n| :--------------------------------: | :-------------------------: |\n| \u003cimg src=\"docs/example_axes_grid_no_mpu.png\" alt=\"Without mplotutils\" width=\"250\"/\u003e | \u003cimg src=\"docs/example_axes_grid_mpu.png\" alt=\"With mplotutils\" width=\"250\"/\u003e |\n\nThe code to create the example can be found in [docs/example_axes_grid.py](docs/example_axes_grid.py).\n\n## hatching\n\nmplotutils (from version 0.6) includes helper functions to draw hatches and add stippling:\n\n\u003cimg src=\"docs/example_hatch.png\" alt=\"mplotutils hatching\" width=\"350\"/\u003e\n\nThe code to create the example can be found in [docs/example_hatch.py](docs/example_hatch.py).\n\n## Installation\n\nSee [docs/installation.md](docs/installation.md).\n\n## Changelog\n\nSee [CHANGELOG.md](CHANGELOG.md).\n\n## History\n\nThis package bases on functions developped for the [python visualisation workshop at C2SM](https://github.com/C2SM/pyvis/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathause%2Fmplotutils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathause%2Fmplotutils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathause%2Fmplotutils/lists"}