本文主要是介绍python绘图工具分享(Science,IEEE),希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
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
这篇关于python绘图工具分享(Science,IEEE)的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!