seaborn / Matplotlib出口EPS导致"回落到Agg渲染器"

时间:2016-11-05 19:13:37

标签: matplotlib plot seaborn

考虑下面的MWE。这将导致(Seaborn 0.7.1,Matplotlib 1.5.1):

  

/usr/local/lib/python3.5/dist-packages/matplotlib/tight_layout.py:222:   UserWarning:tight_layout:回退到Agg渲染器
  warnings.warn(" tight_layout:回退到Agg渲染器")

如何解决这个问题?

MWE

import matplotlib
matplotlib.use('ps')
import pandas as pd
import random
import seaborn as sns
import matplotlib.pyplot as plt
ds = pd.DataFrame()
ds['x'] = random.sample(range(1, 100), 25)
ds['y'] = random.sample(range(1, 100), 25)
p = sns.jointplot(x = ds['x'],y = ds['y'],linewidth=1,edgecolor='black',alpha=0.3,stat_func=None)
plt.savefig("test.eps")

0 个答案:

没有答案