{"id":13869935,"url":"https://github.com/datawhalechina/fantastic-matplotlib","last_synced_at":"2025-04-05T11:09:48.994Z","repository":{"id":38178087,"uuid":"319210059","full_name":"datawhalechina/fantastic-matplotlib","owner":"datawhalechina","description":"Matplotlib中文教程，在线阅读地址：https://datawhalechina.github.io/fantastic-matplotlib/","archived":false,"fork":false,"pushed_at":"2022-07-31T13:15:22.000Z","size":13547,"stargazers_count":485,"open_issues_count":1,"forks_count":107,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-29T10:07:14.165Z","etag":null,"topics":["matplotlib","visualization"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/datawhalechina.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-07T05:07:47.000Z","updated_at":"2025-03-22T08:51:31.000Z","dependencies_parsed_at":"2022-07-09T17:30:45.613Z","dependency_job_id":null,"html_url":"https://github.com/datawhalechina/fantastic-matplotlib","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datawhalechina%2Ffantastic-matplotlib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datawhalechina%2Ffantastic-matplotlib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datawhalechina%2Ffantastic-matplotlib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datawhalechina%2Ffantastic-matplotlib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datawhalechina","download_url":"https://codeload.github.com/datawhalechina/fantastic-matplotlib/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247325693,"owners_count":20920714,"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","visualization"],"created_at":"2024-08-05T20:01:22.479Z","updated_at":"2025-04-05T11:09:48.979Z","avatar_url":"https://github.com/datawhalechina.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Fantastic-Matplotlib\n\n![](https://matplotlib.org/_static/logo2_compressed.svg)\n\n本项目《Fantastic-Matplotlib》是Datawhale🐳数据可视化小组的一个开源项目。\n\nMatplotlib可以说是python数据可视化最重要且常见的工具之一，每一位和数据打交道的人几乎都不可避免要用到，此外也有大量的可视化工具是基于matplotlib做的二次开发。\n\n设计这样一套开源教程的初衷在于笔者最初在用python做数据可视化时面临两大痛点，\n\n- 没有系统梳理matplotlib的绘图接口，常常是现用现查，用过即忘，效率极低\n- 没有深入理解matplotlib的设计框架，往往是只会复制粘贴，不知其所以然，面对复杂图表时一筹莫展\n\n基于此，为了彻底解决这些痛点，笔者下定决心通读[官方文档](https://matplotlib.org/)，相比于市面上的很多学习材料，官方文档的内容极为详细而全面，更重要的是，其阐明了matplotlib包的设计架构，这些对于我们掌握并应用是非常有帮助的。在通读完官方文档并结合一定的归纳总结与实践之后，笔者能明显察觉到对于matplotlib的理解上了一个层次。\n\n如果屏幕前的你们，也正在面临以上说的这两个痛点，那么学习本项目教程将会是一个不错的选择。\n\n本项目重点希望在两个层面帮助读者构建matplotlib的知识体系，\n\n- 从图形，布局，文本，样式等多维度系统梳理matplotlib的绘图方法，构建对于绘图方法的整体理解\n- 从绘图API层级，接口等方面阐明matplotlib的设计理念，摆脱只会复制粘贴的尴尬处境\n\n最后还要说的是，对于学习完本教程的读者，若是仍然觉得学有余力不过瘾，强烈建议按需阅读官方文档，相信你一定会有所收获的。\n\n关于本项目的名称，fantastic-matplotlib，在笔者精读过官网文档之后，才愈发觉得精妙，仿佛看到了一角下的广袤冰山，被它强大的功能和精巧的设计惊艳到了，之前对于matplotlib的了解还是过于浅薄，因此想用fantastic来表示笔者的感慨，也希望能够通过这样一个开源教程带领读者领略的matplotlib的精彩之处。\n\n下图是该项目的大纲，总共五个章节介绍整个Fantastic-Matplotlib数据可视化项目。\n\n![](https://img-blog.csdnimg.cn/20210530234005720.png)\n\n## 使用说明\n\n- 使用前请将matplotlib升级至V3.4.2以上(2022年1月)，否则可能会出现报错！\n- 本教程独立网站已上线：[https://datawhalechina.github.io/fantastic-matplotlib/](https://datawhalechina.github.io/fantastic-matplotlib/)\n- 使用时若发现任何问题，或是你对项目内容有好的建议，欢迎留言交流，联系邮箱skywateryang@126.com，微信`skywateryang`\n\n\n## 目录\n\n* 第一回：Matplotlib初相识\n\n\u003e 和matplotlib的初次邂逅，赶紧拿出画布，画笔，一段奇幻的旅途即将开启\n\n* 第二回：艺术画笔见乾坤\n\n\u003e 挥舞起手中的艺术画笔，发挥想象力，在画布上自由地绘制图形\n\n* 第三回：布局格式定方圆\n\n\u003e 没有规矩不成方圆，你应当开始学会如何合理地在画布上布局了\n\n* 第四回：文字图例尽眉目\n\n\u003e 为了让你的画流传更久远，快来学习下如何在画布上题字吧\n\n* 第五回：样式色彩秀芳华\n\n\u003e 下一步你需要学习下怎么样绘制出更加花样繁复，色彩绚丽的画了\n\n\n\n\n\n\n## 致谢\n\n感谢以下Datawhale成员对项目推进作出的贡献(排名不分先后)：\n\n**贡献者名单**\n\n| 成员   | 个人简介                              | 个人主页                                           |\n| ------ | ------------------------------------------- | -------------------------------------------------- |\n| 杨剑砺 | Datawhale成员，**项目负责人**，数据分析师   | 公众号：口羊的数据分析实验室                 |\n| 杨煜   | Datawhale成员，数据分析师                   | 公众号：BI数据可视化                               |\n| 耿远昊 | Datawhale成员，华东师范大学在读             | Github：https://github.com/GYHHAHA                 |\n| 李运佳 | Datawhale成员，上海交通大学在读             | 知乎：https://www.zhihu.com/people/li-yun-jia-68-9 |\n| 居凤霞 | Datawhale成员，数据分析师，南瓜书项目贡献者 |                                                    |\n\n**项目贡献情况**\n\n\u003e 《Fantastic-Matplotlib》V1.0 : 项目第一版上线\n\n项目构建与整合：杨剑砺\n\n第一章：杨剑砺\n\n第二章：杨煜，居凤霞\n\n第三章：耿远昊\n\n第四章：李运佳\n\n第五章：杨剑砺\n\n\u003e 《Fantastic-Matplotlib》V1.1 ：第一次全面更新\n\n全部章节的更新完善：杨剑砺\n\n\n\n## 关注我们\n\n\u003cdiv align=center\u003e\u003cimg src=\"https://img-blog.csdnimg.cn/20210607220347359.png\" width = \"250\" height = \"270\" alt=\"Datawhale是一个专注AI领域的开源组织，以“for the learner，和学习者一起成长”为愿景，构建对学习者最有价值的开源学习社区。关注我们，一起学习成长。\"\u003e\u003c/div\u003e\n\n## LICENSE\n\n\u003ca rel=\"license\" href=\"http://creativecommons.org/licenses/by-nc-sa/4.0/\"\u003e\u003cimg alt=\"知识共享许可协议\" style=\"border-width:0\" src=\"https://img.shields.io/badge/license-CC%20BY--NC--SA%204.0-lightgrey\" /\u003e\u003c/a\u003e\n\n本作品采用\u003ca rel=\"license\" href=\"http://creativecommons.org/licenses/by-nc-sa/4.0/\"\u003e知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议\u003c/a\u003e进行许可。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatawhalechina%2Ffantastic-matplotlib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatawhalechina%2Ffantastic-matplotlib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatawhalechina%2Ffantastic-matplotlib/lists"}