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