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.