phiplot.py 文件源码

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

项目:phiplot 作者: grahamfindlay 项目源码 文件源码
def plot(self, values, *args, **kw):
        """Plot a concept's cause-effect repertoire on the radarchart.

        Examples:
            >>> full_rep = np.hstack([cause_rep, effect_rep])
            >>> radar.plot(full_rep, '-', lw=2, label=mechanism_label)

        Args:
            values (np.ndarray): A flat array of state probabilitites, given in
                the same order as the `titles` argument to the ConstellationRadar
                constructor.

        Also takes standard matplotlib linespec arguments, such as color, style,
            linewidth, etc.
        """
        angle = np.deg2rad(np.r_[self.angles, self.angles[0]])
        values = np.r_[values, values[0]]
        self.ax.plot(angle, values, *args, **kw)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号