Python equivalent of D3.js

前端 未结 15 929
感情败类
感情败类 2021-01-29 17:08

Can anyone recommend a Python library that can do interactive graph visualization?

I specifically want something like d3.js but for python

15条回答
  •  误落风尘
    2021-01-29 17:57

    Plotly supports interactive 2D and 3D graphing. Graphs are rendered with D3.js and can be created with a Python API, matplotlib, ggplot for Python, Seaborn, prettyplotlib, and pandas. You can zoom, pan, toggle traces on and off, and see data on the hover. Plots can be embedded in HTML, apps, dashboards, and IPython Notebooks. Below is a temperature graph showing interactivity. See the gallery of IPython Notebooks tutorials for more examples.

    enter image description here



    The docs provides examples of supported plot types and code snippets.



    enter image description here

    Specifically to your question, you can also make interactive plots from NetworkX.

    enter image description here

    For 3D plotting with Python, you can make 3D scatter, line, and surface plots that are similarly interactive. Plots are rendered with WebGL. For example, see a 3D graph of UK Swap rates.



    enter image description here

    Disclosure: I'm on the Plotly team.

提交回复
热议问题