本文整理汇总了Python中matplotlib.verbose.ge函数的典型用法代码示例。如果您正苦于以下问题:Python ge函数的具体用法?Python ge怎么用?Python ge使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ge函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _run
def _run(self):
# Uses subprocess to call the program for assembling frames into a
# movie file. *args* returns the sequence of command line arguments
# from a few configuration options.
command = self._args()
if verbose.ge("debug"):
output = sys.stdout
else:
output = subprocess.PIPE
verbose.report("MovieWriter.run: running command: %s" % " ".join(command))
self._proc = subprocess.Popen(command, shell=False, stdout=output, stderr=output, stdin=subprocess.PIPE)
示例2: _args
def _args(self):
# Returns the command line parameters for subprocess to use
# ffmpeg to create a movie using a pipe.
args = [self.bin_path(), '-f', 'rawvideo', '-vcodec', 'rawvideo',
'-s', '%dx%d' % self.frame_size, '-pix_fmt', self.frame_format,
'-r', str(self.fps)]
# Logging is quieted because subprocess.PIPE has limited buffer size.
if not verbose.ge('debug'):
args += ['-loglevel', 'quiet']
args += ['-i', 'pipe:'] + self.output_args
return args
示例3: _args
def _args(self):
# Returns the command line parameters for subprocess to use
# ffmpeg to create a movie using a pipe.
args = [
self.bin_path(),
"-f",
"rawvideo",
"-vcodec",
"rawvideo",
"-s",
"%dx%d" % self.frame_size,
"-pix_fmt",
self.frame_format,
"-r",
str(self.fps),
]
# Logging is quieted because subprocess.PIPE has limited buffer size.
if not verbose.ge("debug"):
args += ["-loglevel", "quiet"]
args += ["-i", "pipe:"] + self.output_args
return args