fig =plt.figure(figsize=(12,10)) fig.savefig('pics/cluster_%i.jpg'%(ncomp), format='jpg',dpi=300,bbox_inches = 'tight',pad_inches = 0)