To Top
首页 > 基础知识 > 正文

matplotlib

标签:matplotlib


目录

50种常用的matplotlib可视化,再也不用担心模型背着我乱跑了

原始文章https://www.machinelearningplus.com/plots/top-50-matplotlib-visualizations-the-master-plots-python

通用配置:

# !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__)  #> 0.9.0

原创文章,转载请注明出处!
本文链接:http://daiwk.github.io/posts/knowledge-matplotlib.html
上篇: linux
下篇: 机器学习中的矩阵、向量求导

comment here..