|
@@ -20,14 +20,7 @@ def init():
|
|
|
plt.rcParams['axes.unicode_minus'] = False # 解决负号显示问题
|
|
|
plt.rcParams['figure.figsize'] = (8, 8)
|
|
|
plt.rcParams['figure.max_open_warning'] = 1000
|
|
|
-
|
|
|
-
|
|
|
-def _custom_warning_filter(action, message, category, module, filename, line):
|
|
|
- # 如果警告消息包含“ignore this warning”,则忽略该警告
|
|
|
- if "matplotlib.font_manager" in str(message):
|
|
|
- return False
|
|
|
- # 否则,显示警告
|
|
|
- return True
|
|
|
+ # plt.ioff()
|
|
|
|
|
|
|
|
|
def warning_ignore():
|