文章预览
大家好, 今 天分享给大家25个Matplotlib图的汇总,在数据分析和可视化中非常有用,文章较长,可以马起来慢慢练手。 # !pip install brewer2mpl import numpy as np import pandas as pd import matplotlib as mpl import matplotlib.pyplot as plt import seaborn as sns import warnings; warnings.filterwarnings(action= 'once' ) large = 22 ; med = 16 ; small = 12 params = { 'axes.titlesize' : large, 'legend.fontsize' : med, 'figure.figsize' : ( 16 , 10 ), 'axes.labelsize' : med, 'axes.titlesize' : med, 'xtick.labelsize' : med, 'ytick.labelsize' : med, 'figure.titlesize' : large} plt.rcParams.update(params) plt.style.use( 'seaborn-whitegrid' ) sns.set_style( "white" ) %matplotlib inline # Version print (mpl.__version__) #> 3.0.0 print (sns.__version__
………………………………