3.0.1的API变更

tight_layout.auto_adjust_subplotpars 可以返回 None 现在,如果新的子图参数将轴折叠为零宽度或高度。这防止 tight_layout 不会被执行。同样地 tight_layout.get_tight_layout_figure 将不返回。

为了缩短导入(启动)时间,私有模块现在被延迟地导入。以下位置不再提供这些模块:

  • matplotlib.backends.backend_agg._png
  • matplotlib.contour._contour
  • matplotlib.image._png
  • matplotlib.mathtext._png
  • matplotlib.testing.compare._png
  • matplotlib.texmanager._png
  • matplotlib.tri.triangulation._tri
  • matplotlib.tri.triangulation._qhull
  • matplotlib.tri.tricontour._tri
  • matplotlib.tri.trifinder._tri