Questions tagged [pydot]

pydot is a Python module to serve as an easy interface to Graphviz's dot language.

For more information, check:

202 questions
1
vote
1 answer

Line up the heads of Dot graph using PyDot?

I'm making a dynamically generated graph of my lab experiments. This is what it looks like now: Ideally I'd like the blue nodes to be in a line across the top, so that current experiments are visible no matter how big the history leading up to them…
jefdaj
  • 2,025
  • 2
  • 21
  • 33
1
vote
1 answer

Need to control pydot edge length

Is there a way to use pydot to generate a directed tree graph that looks like "normal tree graphs" where every node of the same depth displays at the same depth, and every edge is at some angle (not straight down)? When I use these defaults: graph =…
user3078690
1
vote
1 answer

Is there a way to control line angle when producing graphs with pyDot

I wrote a python class to display and animate binary search trees. Yet the graphs produced by the pyDot edge and node commands don't seem to allow me to control the angle or direction of the arrows connecting each element of my tree. There are…
user3078690
1
vote
1 answer

How to use lines with arrow in pydot

I have drawn a binary search tree using pydot with these commands graph = pydot.Dot(graph_type='graph') visit(n5, BFS) graph.write_png('example1_graph.png') Where function view traverses the tree and calls a simple routine to draw the edges: def…
user3078690
1
vote
1 answer

Directed graph in python

I am trying to depict the relationship of different data entities with my ETL (extraction transformation loading) pipeline. The final output is a large directed graph. So far I am using Python to extract data relationship. Pydot helps me generate…
1
vote
1 answer

Ignore includes with #pycparser and define multiple Subgraphs in #pydot

I am new to stackoverflow, but I got a lot of help until now, thanks to the community for that. I'm trying to create a software showing me caller depandencys for legacycode. I'parsing a directory with c code with pycparcer, and for each file i want…
Adrian
  • 21
  • 5
1
vote
1 answer

Draw square lines using pydot

I need to generate a chart. I use pydot library. My code is: import pydot people = ['person_%d'%i for i in range(10)] graph = pydot.Dot(graph_type='graph', rankdir='LR', splines='ortho') # create nodes for people node_list = [] for person in…
Adin
  • 101
  • 1
  • 4
1
vote
2 answers

Pydot Cluster positioning

If have two clusters containing a hierarchy of other clusters. All very cool! I want to place the two clusters vertically. Although other posts suggest how to place nodes (not clusters) vertically I am unable to get this to work for a cluster. The…
Keir
  • 557
  • 1
  • 6
  • 17
0
votes
0 answers

Redesign the representation of the process

I have a problem. I want to draw a proces unfortunately it does not look good as I want. Is there an option to make the arrows more angular, create a box with and add messages to edges or nodes. Is there an option to redesign the process with PyDot…
Test
  • 571
  • 13
  • 32
0
votes
0 answers

Python cant check graphviz

CANNError I have installed all required libraries including graphviz but still can't get png output (it's CANN algorithm for machine learning) help
Nury
  • 9
  • 1
0
votes
0 answers

How to highlight the path in the flowchart using pydot?

I built a rules engine for iris flowers using and, or conditions and I would like to generate the flowchart using those rules. I could able to generate the flowchart for all the rules mentioned in the rules engine but I want to hightlight the path…
merkle
  • 1,585
  • 4
  • 18
  • 33
0
votes
1 answer

how to extract the rules from rules engine of experta library

I am trying to extract the rules from the rules engine that I build using experta library. Below is the code from experta import * import pydot class Iris(Fact): """IRIS""" sepal_length = Field(float) sepal_width = Field(float) …
merkle
  • 1,585
  • 4
  • 18
  • 33
0
votes
1 answer

How to generate a flow chart using the rules engine in python?

I would like to generate a flow using the rules that I defined in the rules engine. Below is the code from pyknow import * import pydot class Wine(Fact): """Wine characteristics""" pass class Quality(Fact): """Wine quality""" …
merkle
  • 1,585
  • 4
  • 18
  • 33
0
votes
0 answers

convert dot graph to networkx graph with same layout and attributes

I am looking for other alternatives to render grpah and save as image from dot file. I can't use Graphviz tool in my work machine as I have restriction. In my search I found networkx python which has pydot/pygraphviz support through which i) I can…
param
  • 3
  • 3
0
votes
1 answer

Using pydot with networkx

I am trying to plot the following list as a graph with edge thickness proportional to the weights. g_list=[('Alpha', 'Alpha', 7.06), ('Alpha', 'Bravo', 0.98), ('Alpha', 'Charlie', 0.0), ('Alpha', 'Delta', 0.0), ('Alpha', 'Echo', 1.57), ('Alpha',…