from pylab import *
import seaborn as sns
# 图表显示参数
from IPython.display import display
%matplotlib inline
plt.rcParams['figure.figsize'] =[15.0, 10.0]
import pandas as pd
pd.options.display.max_columns=150
pd.options.display.max_rows=1000
pd.options.display.width = 180 # console
中文显示问题
from pylab import *
%matplotlib inline
from pylab import mpl
mpl.rcParams['font.sans-serif'] = ['FangSong'] # 指定默认字体
plt.rcParams['figure.dpi'] = 300
# 负号显示错误
mpl.rcParams['axes.unicode_minus'] = False # 解决保存图像是负号'-'显示为方块的问题
# semilogy中负号显示问题
import matplotlib.mathtext as mathtext
old_get_unicode_index = mathtext.get_unicode_index
mathtext.get_unicode_index = lambda symbol, math=True:
ord('-') if symbol == '-' else old_get_unicode_index(symbol, math)