1. 安装绘图工具包
pip install git+https://github.com/garrettj403/SciencePlots.git
2. 使用工具包
import matplotlib.pyplot as plt
plt.style.use(['science','ieee'])
plt.style.use(['science','no-latex']) #没有latex使用该语句
暂时使用某种样式
with plt.style.context('science'):
plt.figure()
plt.plot(x, y)
plt.show()
3. 样式列表
i. 样式
science
science + scatter
science + notebook
science + ieee
science + nature
ii. 语言
Traditional Chinese (science + no-latex + cjk-tc-font)
Simplified Chinese (science + no-latex + cjk-sc-font)
Japanese (science + no-latex + cjk-jp-font)
Korean (science + no-latex + cjk-kr-font)
Russian/cyrillic (science + russian-font)
iii. 色彩
bright
vibrant
muted
high-contrast
light
std-colors
high-vis
retro
[1] ieee期刊_论文绘图神器来了:一行代码绘制不同期刊格式图表,哈佛博士后开源…
[2] SciencePlots
[3] Basic Styles