__init__.py 文件源码

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

项目:geoviews 作者: ioam 项目源码 文件源码
def get_data(self, element, ranges, style):
        if self.geographic:
            vdim = element.vdims[0] if element.vdims else None
            value = element.level
            if vdim is not None and (value is not None and np.isfinite(value)):
                self._norm_kwargs(element, ranges, style, vdim)
                style['clim'] = style.pop('vmin'), style.pop('vmax')
                style['array'] = np.array([value])
            return ([element.data], element.crs), style, {}
        else:
            SkipRendering('Shape can only be plotted on geographic plot, '
                          'supply a coordinate reference system.')


########################################
#  Geographic features and annotations #
########################################
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号