本文主要是介绍【Matplotlib作图-5.Composition】50 Matplotlib Visualizations, Python实现,源码可复现,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
目录
- 05 Composition
- 5.0 Prerequisite
- 5.1 Waffle Chart
- 5.2 Pie Chart
- 5.3 Treemap
- 5.4 Bar Chart
- References
05 Composition
5.0 Prerequisite
-
Setup.py
# !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')
plt.style.use("seaborn-v0_8")
sns.set_style("white")
# %matplotlib inline# Version
print(mpl.__version__) #> 3.7.1
print(sns.__version__) #> 0.12.2
5.1 Waffle Chart
5.2 Pie Chart
5.3 Treemap
5.4 Bar Chart
References
- Top 50 matplotlib Visualizations
- 【Matplotlib作图-1.Correlation】50 Matplotlib Visualizations, Python实现,源码可复现
- 【Matplotlib作图-2.Deviation】50 Matplotlib Visualizations, Python实现,源码可复现
- 【Matplotlib作图-3.Ranking】50 Matplotlib Visualizations, Python实现,源码可复现
- 【Matplotlib作图-4.Distribution】50 Matplotlib Visualizations, Python实现,源码可复现
这篇关于【Matplotlib作图-5.Composition】50 Matplotlib Visualizations, Python实现,源码可复现的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!