nodebox

Pydev Nodebox: “AttributeError: 'NoneType' object has no attribute 'WIDTH'”

≡放荡痞女 提交于 2019-12-24 09:16:47
问题 I am trying to create a graph of the connections between the users in my database using nodebox(ubuntu 12.04, python 2.7, django 1.3), but when I enter the following instructions, I get the error message underneath it: """ g.draw(weighted=False, directed=False, highlight=[], traffic=None) Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/IPython/core/interactiveshell.py", line 2721, in run_code exec code_obj in self.user_global_ns, self.user_ns File "<ipython

Adding label to an edge of a graph in nodebox opnegl

Deadly 提交于 2019-12-13 13:17:21
问题 I am trying to add a label to each edge in my Graph, below: Basically the above with labels for each edge at the center: I've tried to add a label when I add an edge to each graph, like so (for the graph g ): g.add_edge(... label=edge.distance ...) After some research, I found that such labeling was possible under Nodebox 1, which only works for Mac, there seems to be no suitable alternative for Nodebox-OpenGL from the documentation. The error I receive: Traceback (most recent call last):

Algorithm to create polygons of enclosed areas

梦想的初衷 提交于 2019-12-11 13:52:43
问题 I have multiple circles (as list of connected vertices) at random positions. When the circles intersect, closed areas are created (just like in a venn diagram http://en.wikipedia.org/wiki/Venn_diagram) How do I generate separate polygons of all of these areas? The goal would be to be able to color every region with a separate polygon like in this example: Is a general solution possible with iterative boolean intersection operations? EDIT The following simple snipped is a [NodeBox](http:/

Nodebox open GL Graph, size function not recognized. (Ubuntu)

梦想的初衷 提交于 2019-12-11 09:44:45
问题 I am trying to use Nodebox Graph on Ubuntu and python 2.7. So I got Nodebox OpenGL: http://www.cityinabottle.org/nodebox/ Nodebox Graph: https://www.nodebox.net/code/index.php/Graph I tried to run their basic example 1 : graph = ximport("graph") size(500, 500) g = graph.create() # Create some relations. g.add_edge("roof" , "house") g.add_edge("garden" , "house") g.add_edge("room" , "house") g.add_edge("kitchen" , "room") g.add_edge("bedroom" , "room") g.add_edge("bathroom" , "room") g.add