【问题标题】:Embed interactive matplotlib plot in a webpage在网页中嵌入交互式 matplotlib 图
【发布时间】:2015-08-04 11:16:54
【问题描述】:

我有一个简单的 matplotlib 散点图,它使用 this code 单击点时显示注释。我需要将其嵌入网页中。我该怎么做?

我也在这里找到了类似的问题,但不太明白答案。如果有人可以详细解释一下吗?

编辑:我需要做类似this 的操作,并在网页中显示交互式散点图。但是,在查看网页的源代码时,它看起来不像是在调用python代码。
我该如何做类似的事情?

【问题讨论】:

    标签: python matplotlib plot


    【解决方案1】:

    我认为您无法使用以前在网页中使用的相同代码,但使用像 bokehhover 工具这样的库可以很容易地获得类似的行为

    http://docs.bokeh.org/en/latest/docs/user_guide/tools.html#hovertool

    【讨论】:

      猜你喜欢
      • 2014-05-09
      • 2012-07-30
      • 1970-01-01
      • 2013-04-17
      • 2017-08-24
      • 2020-07-23
      • 2013-12-09
      • 2015-12-05
      • 2013-08-18
      相关资源
      最近更新 更多