python matplotlib.plot常规配置
import matplotlib.pyplot as plt # 让matplotlib的图表在jupternotebook中直接显示 %matplotlib inline #解决中文乱码问题(仅针对windows电脑) plt.rcParams['font.sans-serif'] = 'SimHei' #解决负号无法显示问题 plt.rcParams['axes.unicode_minus'] = False #让图表变成矢量形式,显示更清晰 %config InlineBackend.figure_format = 'svg'
浙公网安备 33010602011771号