{"id":25828585,"url":"https://github.com/bbcho/quilter-dev","last_synced_at":"2025-02-28T17:48:39.660Z","repository":{"id":51742117,"uuid":"311811086","full_name":"bbcho/quilter-dev","owner":"bbcho","description":null,"archived":false,"fork":false,"pushed_at":"2021-02-16T00:23:24.000Z","size":1004,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-11T23:49:36.110Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","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/bbcho.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":"2020-11-10T23:36:06.000Z","updated_at":"2023-05-26T12:44:08.000Z","dependencies_parsed_at":"2022-08-23T04:21:01.468Z","dependency_job_id":null,"html_url":"https://github.com/bbcho/quilter-dev","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbcho%2Fquilter-dev","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbcho%2Fquilter-dev/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbcho%2Fquilter-dev/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbcho%2Fquilter-dev/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bbcho","download_url":"https://codeload.github.com/bbcho/quilter-dev/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241192386,"owners_count":19925308,"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":[],"created_at":"2025-02-28T17:48:38.998Z","updated_at":"2025-02-28T17:48:39.644Z","avatar_url":"https://github.com/bbcho.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Quilter\r\n## The composer of Matplotlib plots. Python implementation of the R package patchwork. \r\n\r\nThis package overloads/creates operators for the matplotlib Figure class so that you can add and divide figures together into a new figure with subplots. \r\n\r\nAdding two figures together creates a new figure with the original figures side-by-side as subplots. Dividing will stack the figured on top of each other. \r\n\r\nCurrently the package converts the input figures to images before reloading the images into the axes objects of the output figure. If anyone has a better way to copy actual axes objects to a new figure I'd loved help.\r\n\r\nHere are some examples:\r\n\r\n```\r\nimport matplotlib.pyplot as plt\r\nimport quilter # best to put this after your matplotlib import\r\n\r\nfig1, ax1 = plt.subplots(figsize=(5,3))\r\nax1.plot([1, 2], label='my leg')\r\nax1.set_title(\"test\")\r\nax1.legend()\r\n\r\nfig2, ax2 = plt.subplots(figsize=(5,3))\r\nax2.plot([2, 2])\r\nax2.set_title(\"test 2\")\r\n```\r\n\r\nAdding figures together\r\n```\r\nout = fig1 + fig2\r\n```\r\n\r\nDividing figures\r\n```\r\nout = fig1 / fig2\r\n```\r\n\r\nMore complex examples\r\n```\r\nout = (fig1 + fig2) / fig2\r\n\r\nout = (fig1 + fig2) / (fig1 + fig2)\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbcho%2Fquilter-dev","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbbcho%2Fquilter-dev","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbcho%2Fquilter-dev/lists"}