def SaveFormat(root, fmt='eps'):
 filename = ('%s.%s' % (root, fmt))
 print('Writing', filename)
 pyplot.savefig(filename, format=fmt, dpi=300)

def SaveFormat ( root , fmt = 'eps' ) : filename = ( '%s.%s' % ( root , fmt ) ) print ( 'Writing' , filename ) pyplot . savefig ( filename , format = fmt , dpi = 300 )
writes the current figure to a file in the given format .