matplotlib.pyplot 绘图基础结构分析
II matplotlib基础
可实现基础配置,下例是后端配置,主要是渲染方案相关
matplotlib.use(backend, warn=False, force=True)
# Select the backend used for rendering and GUI integration.
backend : str
The backend to switch to. This can either be one of the standard backend names, which are case-insensitive:
- interactive backends: GTK3Agg, GTK3Cairo, MacOSX, nbAgg, Qt4Agg, Qt4Cairo, Qt5Agg, Qt5Cairo, TkAgg, TkCairo, WebAgg, WX, WXAgg, WXCairo
- non-interactive backends: agg, cairo, pdf, pgf, ps, svg, template
or a string of the form: module://my.module.name.

本文深入剖析matplotlib.pyplot的基础结构,包括matplotlib基础配置、2D和3D绘图。重点讲解matplotlib.figure.Figure、matplotlib.axes及其回调功能,以及pyplot模块与MATLAB风格绘图。此外,还介绍了plot、subplot和subplots的使用方法。
最低0.47元/天 解锁文章
1004

被折叠的 条评论
为什么被折叠?



