flat_removal.py 文件源码

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

项目:BRITE-data-reduction-tool 作者: Ashoka42 项目源码 文件源码
def __init__(self, axis1):
        # Defines the axis used
        self.ax1 = axis1
        # Defines the default y-coordinate of the rectangle
        self.y0 = -50
        self.y1 = 50
        # Defines variables for drawing enabled/disabled and default output
        self.draw = 0
        self.output = "-50 50"
        # Defines a rectangle for the plot (mag/hjd)
        # Sets the rectangular width to 10000 - should be enough
        self.rect1 = Rectangle((0, 0), 10000, 0, alpha=0.3)
        # Adds the rectangle to the corresponding axis
        self.ax1.add_patch(self.rect1)

    # Defines what should happen on pressing the mousebutton
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号