EzDevInfo.com

d3py

a plottling library for python, based on D3

IO Error in d3py example code -- no such file or directory: 'static/d3.js'

I am trying to run through the d3py example code available in the d3py readme file (see link below), and am receiving the following error:

https://github.com/mikedewar/d3py/blob/master/README.md

(python 2.7.3 on 32-bit Windows)

>>> # instantiate the figure object
>>> fig = d3py.Figure(df, name="basic_example", width=300, height=300) 
        Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
        File "build\bdist.win32\egg\d3py\d3py.py", line 97, in __init__
    IOError: [Errno 2] No such file or directory: 'static/d3.js'
>>>

I installed the d3py package by using the following command in PowerShell:

easy_install https://github.com/mikedewar/d3py/tarball/master

and, importing the package within a python session (i.e. import d3py) does not result in any errors. What can I do to make the example code work?


Source: (StackOverflow)

How to plot graphs using networkx and d3py

I am trying to visualize graphs generated from networkx, using d3py. I used the example provided (https://github.com/mikedewar/d3py/blob/master/examples/d3py_graph.py) but all I get is the graph without node names, how do I plot node names as well?

Also, how do I change edge and node colors?


Source: (StackOverflow)

Advertisements

D3py multiple graphs in same output

I would like to know how I can obtain multiple graphs as output on a single html page using d3py. I have been working with some of the examples in https://github.com/mikedewar/d3py, but when I try to get 2 or 3 graphs in a single output html file, it does not work.


Source: (StackOverflow)

Alluvial or Sankey diagram generated with Python, using d3py?

I'd like to create a Sankey or alluvial diagram using d3py, d3.js, and its sankey.js plugin, but I don't know how to reach this JavaScript library and the plugin from d3py.

Can someone get me started here?


Source: (StackOverflow)