Python Data Visualization: Advancing matplotlib Skills
Tags
Summary
Editor's review
In terms of structure, the book does not stop at introductory chart drawing but delves into the architectural core of matplotlib. It systematically explains the Figure, Axes, and Artist object models, enabling readers to understand how figures are constructed and rendered. The core highlight is an in-depth analysis of customization capabilities: from fine-grained control of axes, ticks, and legends to combining subplots and creating complex layouts; from aesthetic design of colors, fonts, and styles to the implementation of animation and interactivity. The book includes numerous cases closely tied to real work, such as financial time-series charts, geographic information visualization, and multidimensional data comparison, demonstrating how to turn matplotlib from a tool that can draw charts into one that can precisely express information.
Drawing on his experience as a frontline data analyst, Liu Dacheng writes in a pragmatic style with detailed code examples, focusing on solving the real-project problems readers encounter—how to achieve specific effects and why one's charts are not professional enough. For developers who want publication-quality charts or need to integrate visualization modules into complex applications, the book's detailed explanations of low-level APIs and performance optimization suggestions are highly valuable. It fills the gap between introductory tutorials and source-code reading, making it a high-quality reference for data scientists, quantitative analysts, and researchers seeking to deepen their visualization skills. Note that the book requires readers to have a foundation in Python and matplotlib; it is not a zero-start introductory text.
Who it's for
A good fit for
- Python developers who already know basic matplotlib syntax and want to produce publication-quality or commercial-grade charts
- Data analysts or researchers who need complex chart customization (such as custom ticks, composite figures, and animation)
- Software engineers who want to understand the matplotlib object model in depth so as to integrate visualization deeply into their own applications
- Practitioners in fields such as finance, geography, and bioinformatics who have special customization needs for domain-specific charts
Not a good fit for
- Complete beginners with no exposure to Python programming or the matplotlib library
- Temporary users who only need to quickly draw simple charts and have no deep need for chart aesthetics or customization
Reading tips
- Read the chapters in order, with particular attention to the object model in Chapters 2–3, which is the foundation for all subsequent advanced customization
- Be sure to run the book's code examples on a computer while reading, and modify parameters to observe changes in the charts in order to deepen understanding
- Use chapters such as “style customization” and “animation” as a reference manual for targeted consultation and practice when specific project needs arise
About the publisher
The Publishing House of Electronics Industry is a comprehensive publisher distinguished by its focus on electronic information and related fields. Judging from the more than 3,000 titles in its catalogue, its publishing covers programming and design, artificial intelligence, computer science, finance and economics, photography, and social sciences, attending both to cutting-edge technology and to general readers. Representative titles include Factor Investing: Methods and Practice, x86 Assembly Language: From Real Mode to Protected Mode, The RISC-V Reader, Artificial Intelligence: Speech Recognition, Understanding and Practice, Phased Array Radar Technology, Radar Target Characteristics, and 100 Go Mistakes and How to Avoid Them, most of which centre on technical methods and engineering practice. Its authors include Shi Chuan, Li Zhong, Wang Xiaobo, David Patterson, Andrew Waterman, and Yu Zihao, among others from China and abroad. Owing to limited public information, no further publishing features are elaborated here.
Contents
- 版权信息
- 作者简介
- 内容简介
- 前言
- 第1篇 图形
- 第1章 向几何图形里填充颜色
- 1.1 多边形的颜色填充
- 1.2 交叉曲线的颜色填充
- 1.3 延伸阅读
- 1.4 综合案例:交叉间断型曲线的颜色填充
- 第2章 使用模块patches绘制几何图形
- 2.1 圆的实现方法
- 2.2 椭圆的实现方法
- 2.3 矩形的实现方法
- 2.4 圆弧和楔形的绘制方法
- 2.5 延伸阅读
- 第3章 组合展示统计图形
- 3.1 机器学习中的判别分析示意图
- 3.2 日期型时间序列图
- 3.3 向直方图中添加概率密度曲线
- 3.4 绘图区域嵌套子绘图区域
- 3.5 延伸阅读:设置一般化的日期刻度线
- 第2篇 元素
- 第4章 设置文本内容的样式和布局
- 4.1 文本注解的展示样式
- 4.2 文本内容的布局
- 4.3 延伸阅读
- 第5章 调整计量单位和计量方法
- 5.1 不同计量单位的实现方法
- 5.2 不同计量方法的操作原理
- 第6章 调整刻度线和刻度标签及轴脊的展示效果
- 6.1 刻度线和刻度标签及轴标签的位置调整
- 6.2 刻度线的位置和数值的动态调整
- 6.3 主要刻度线和次要刻度线的调整
- 6.4 轴脊的显示与隐藏
- 6.5 轴脊的位置调整
- 第3篇 交互
- 第7章 实现图形的动画效果
- 7.1 使用模块animation绘制动画
- 7.2 调用模块pyplot的API绘制动画
- 第8章 实现GUI效果
- 8.1 类RadioButtons的使用方法
- 8.2 类Cursor的使用方法
- 8.3 类CheckButtons的使用方法
- 第9章 实现事件处理效果
- 9.1 单击关闭画布后出现事件结果提示
- 9.2 画布局部放大效果的实现方法
- 第4篇 探索
- 第10章 从外部导入图像加载到绘图区域
- 10.1 外部图像的多样化展示
- 10.2 地势图
- 10.3 热力图
- 10.4 设置图片具有超链接功能
- 10.5 添加画布层面的外部图像
- 10.6 借助滤镜使得图像产生多样化的展示效果
- 第11章 绘制3D图形
- 11.1 绘制带颜色标尺的彩色曲面
- 11.2 在3D空间里分层展示投射到指定平面后的2D柱状图
- 11.3 在3D空间里绘制散点图
- 第12章 绘制地图
- 12.1 澳大利亚的首都和首府城市的人口数量
- 12.2 当前时点的昼夜地理区域分布图
- 12.3 城市之间相隔距离的可视化呈现
- 第13章 综合交叉的应用场景
- 13.1 输入数据可以使用字符串代替变量
- 13.2 以PDF文件格式存储画布图形
- 13.3 调用pyplot的API和面向对象的API设置图形属性
- 13.4 用树形图展示文件夹中的文件大小
- 13.5 matplotlib风格集的设置方法
- 13.6 matplotlib后端类型的配置方法
- 第5篇 拓展
- 第14章 使用LaTeX和matplotlib自带的TeX功能渲染文本内容
- 14.1 准备步骤
- 14.2 案例展示
- 14.3 延伸阅读
- 第15章 使用matplotlib书写数学表达式的方法和技巧
- 15.1 编辑字符串的规则
- 15.2 设置输出字符串的字体效果
- 15.3 通过数学公式和数学表达式学习TeX符号的编写规则
- 15.4 通过数学符号和希腊字母学习TeX符号的编写规则
- 附录A SciPy的安装方法
- 附录B IPython的使用方法
- 附录C mpI_tooIkits包的安装方法和使用方法
- 附录D Python 2和Python 3的软件版本的使用建议
- 后记
- 其他
FAQ
How does this book differ from the matplotlib chapter in Python for Data Analysis?
How much Python background is needed to study this book?
Is the matplotlib version used in this book outdated?
Comments
Find this book
This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.
About the author
Liu Dacheng is a programming author focused on Python data visualization; public information about him is limited, and no systematic record of his biography is currently available. Two of his works are included in the collection: Python Statistical Visualization: A Practical Guide to Exploratory Analysis with Altair and Python Data Visualization: Advanced Practice with matplotlib. Both center on visualization tools within the Python ecosystem, covering statistical exploratory analysis and advanced plotting practice. His writing stays close to the practical use of these tools, emphasizing hands-on methods and worked examples, and is aimed at developers and data analysis learners who wish to improve their ability to present data. The works are representative entries in the programming design and general computing categories and are suitable as technical learning references.