3.0.1 的 API 更改#

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

为了提高导入(启动)时间,私有模块现在是延迟导入的。这些模块不再位于以下位置

  • 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