interval.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:err-stackdriver 作者: GoogleCloudPlatform 项目源码 文件源码
def __init__(self, tick_minutes, alignment_period=None,
                 per_series_aligner=None,
                 major_formatter=mdates.DateFormatter('%H:%M')):
        """Visual configuration for the time interval to display in a graph.

        Args:
          major_tick_minutes: (int) The number of minutes between each tick.
          alignment_period: (Optional str) E.g., "120s". The size of each point's
            bucket of data. If None is provided, each point in the graph will refer
            to a moment in time rather than a bucket of time. Min is 60s.
          per_series_aligner: (Optional str) E.g., "ALIGN_MAX".  The aligner to use
            for each series.
          major_formatter: (Optional matplotlib.Formatter) The formatter for each
            major tick mark's x-axis time label. Defaults to one that turns an X point
            into HH:MM e.g., "17:35".
        """
        self.tick_minutes = tick_minutes
        self.alignment_period = alignment_period
        self.per_series_aligner = per_series_aligner
        self.major_formatter = major_formatter
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号