def method2jpg(output, mx, raw=False):
 buff = raw
 if (raw == False):
  buff = method2dot(mx)
 method2format(output, 'jpg', mx, buff)

def method2jpg ( output , mx , raw = False ) : buff = raw if ( raw == False ) : buff = method2dot ( mx ) method2format ( output , 'jpg' , mx , buff )
export method to a jpg file format .