Plotting.py 文件源码

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

项目:STEPS 作者: CNS-OIST 项目源码 文件源码
def addPatchSumSpecsPlot(self, title, sim, patch_id, spec_ids, data_size = 1000, x_range = None, y_range = None, **kwargs):
        """
        Add plot to display the sum-up amount changes of species in a patch.

        Parameters:
            * title           Title of the plot
            * sim             STEPS solver
            * patch_id        ID of the patch
            * spec_id         ID of the species
            * data_size       Size of the data history
            * x_range         Range of X axis
            * y_range         Range of y axis
            * **kwargs        Other keywords that are supported by pygraph.GraphicsWindow class

        Return:
            pyqtgraph.PlotItem object
        """
        if title in self.updater:
            raise NameError('A Plot with name ' + title + " exists.")
        plot = self.addPlot(title = title)
        updater = PatchSumSpecsUpdater(plot, sim, patch_id, spec_ids, data_size, x_range, y_range, **kwargs)
        self.updater[title] = updater
        return plot
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号