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._pngmatplotlib.contour._contourmatplotlib.image._pngmatplotlib.mathtext._pngmatplotlib.testing.compare._pngmatplotlib.texmanager._pngmatplotlib.tri.triangulation._trimatplotlib.tri.triangulation._qhullmatplotlib.tri.tricontour._trimatplotlib.tri.trifinder._tri