plotting.py 文件源码

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

项目:phoebe2 作者: phoebe-project 项目源码 文件源码
def mpl2bokeh(ps, data, plot_inds, **kwargs):
    """
    """
    if not conf.devel:
        raise NotImplementedError("'mpld3' plotting backend not officially supported for this release.  Enable developer mode to test.")

    if not _use_bkh:
        raise ImportError("failed to import bokeh: try 'sudo pip install bokeh' or choose another plotting backend")
    if not _use_mpl:
        raise ImportError("failed to import matplotlib: try 'sudo pip install matplotlib' or choose another plotting backend")

    # mpl2bokeh compiles everything through matplotlib and tries to convert
    # only when calling show
    return mpl(ps, data, plot_inds, **kwargs)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号