当我对Matplotlib数字调用fig.set_tight_layout(True)
时,我收到以下不推荐使用的警告:
The set_tight_layout function will be deprecated in a future version. Use set_layout_engine instead.
我如何呼叫set_layout_engine
,以便尽可能接近当前的行为?
Environment:
OS: Mac
Python: 3.10.6
matplotlib: 3.7.2