基础绘图
主题颜色
import matplotlib.pyplot as plt
import seaborn as sns
plt.style.use('xxx')
plt.set_cmap('xxx')
sns.set_theme(palette='xxx')
sns.set_palette('xxx')
导出文件
import matplotlib.pyplot as plt
import seaborn as sns
sns.violinplot(...)
# format: svg, png, pdf, ... 默认根据文件名自动判断
plt.savefig('out.svg', format='svg')
plt.savefig('out.png', format='png')
plt.savefig('out.pdf', format='pdf', dpi=300)