plothelpers.py 文件源码

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

项目:mplbplot 作者: pieterdavid 项目源码 文件源码
def __init__(self, vmax=None, clip=False):
        """
        If *vmax* is not given, it is initialized from the maximum absolute
        value of the first input processed.  That is, *__call__(A)* calls
        *autoscale_None(A)*.
        If *clip* is *True* and the given value falls outside the range,
        the returned value will be 0 or 1, whichever is closer.

        Works with scalars or arrays, including masked arrays.  If
        *clip* is *True*, masked values are set to 1; otherwise they
        remain masked.  Clipping silently defeats the purpose of setting
        the over, under, and masked colors in the colormap, so it is
        likely to lead to surprises; therefore the default is
        *clip* = *False*.
        """
        self.vmax = vmax
        self.clip = clip
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号