1. min() max()函数报错ValueError: The truth value of an array with more than one element is ambiguous
解决:改为np.min() np.max()
2. AttributeError: 'FigureCanvasTkAgg' object has no attribute 'set_window_title'
解决:应该是版本更新迭代问题,我的matplotlib版本是3.6.0
fig.canvas.set_window_title(window_title)
改为
fig.canvas.manager.set_window_title(window_title)