设置tight_layout对我没有帮助,并且会生成一个"Attribute Error:'AxesSubplot‘object has no attribute 'tight_layout'“。我没有发现任何与这个错误相关的问题,所以我假设我正在做一些相当愚蠢的事情……My_means= ratios.pivot_table('Data', 'Sample ID', 'User
site-packages/matplotlib-1.2.0-py2.7-macosx-10.8-intel.egg/matplotlib/tight_layout.py:225: UserWarning: tight_layout: falling back to Agg renderer warnings.warn("tight_layout : falling back to Agg renderer")importas mpl
mpl.use('Agg')