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

How to color a specific path in a graphviz dot file using python

Hello I am iterating a dot file in python using pydot package. I want to color all nodes and edges in a graph who are a parent of particular node unto the starting root. the images below describes the goal. Actual Graph is following Required Output…
Zain Ul Abidin
  • 2,467
  • 1
  • 17
  • 29
1
vote
1 answer

Getting path error while Plotting decision tree, graphviz pydotplus

I'm executing the code below and getting the error following it - from IPython.display import Image from sklearn.tree import export_graphviz from six import StringIO import pydotplus features = list(df.columns[:-1]) features dot_data = StringIO() …
1
vote
1 answer

error is raised when I try to remove elements (pydot objects) from a python list

I am writing an algorithm to represent regression trees, using pydot module (an interface to Graphviz's Dot language). In the algorithm, lists of Edges and Nodes are made, and then they are represented - that is working fine. But in some specific…
carla
  • 2,181
  • 19
  • 26
1
vote
1 answer

Python Pydot How to Rotate Edge Label

I have a question about pydot. I created some nodes and connected them to other nodes. While making connections, I gave a label to the edges. How can we change the direction of these labels ?(eg parallel to the line).My code; graph =…
1
vote
1 answer

Why "png" format is not recognizable in Decision Tree Python?

Code: graph = pdot.graph_from_dot_data(dot_data.getvalue()) Image(graph.create_png()) Got the following error during execution: InvocationException :Traceback (most recent call last) in 3 #(graph,) =…
GoYsh
  • 11
  • 3
1
vote
1 answer

Any recent fix for Pydot Graphviz executables?/ Pydot.Dot.write_png not working

I'm trying to use the pydot.Dot.write_png(...) with pydot and it fails to locate graphviz. I've tried countless number of approaches/fixes to this problem, but they all seem to be for older versions of pydot and graphviz and are not working in my…
Nikz
  • 71
  • 6
1
vote
1 answer

keras failed to import pydot

I'm trying to run the Pix2Pix tutorial for Tensorflow. I'm using the official docker container for this. This is how I start my container: docker run --gpus all -it -p 8888:8888 --rm -v $PWD:/tf -w /tmp…
Bogdan Oloeriu
  • 183
  • 2
  • 11
1
vote
1 answer

How to render DOT file using only pos attributes

I have taken an initial DOT file and modified the pos attributes of some nodes using pydot. Now I want to render an image file that shows the nodes in their new positions. The catch is, I don't want a layout program to mess with the positions! I…
nova
  • 205
  • 1
  • 9
1
vote
1 answer

pydot graphviz edge attribute arrowhead not working

I want to construct a directed graph using python. How do I get the arcs to show arrowheads? import graphviz and gv import pylab g1 = gv.Graph(format='png') g1.node("A") g1.node("B") g1.edge("A", "B",…
Moni
  • 93
  • 1
  • 14
1
vote
0 answers

Why can't pydot find find graphviz in WinPython?

I'm trying to export a dot file from networkx to visualize an example multigraph using pydot in Spyder, like so: import networkx as nx G = nx.MultiGraph() for i in range(10): for j in range(3): G.add_edge(i, i+1,…
James Todd
  • 11
  • 2
1
vote
1 answer

pydotplus is not working correctly, descision-tree visualizaion errior?

Actually I'm using sklearn for visualizing decision tree. I have already installed graphviz and pydotplus and also set the environment variable of graphviz but when i run this code, it gives an error. I'm using "kyphosis" dataset. Here is the actual…
1
vote
1 answer

How to enforce grid layout in graphviz/pydot?

tl;dr: How do I make graphviz stick to a grid layout of nodes? I'm trying to draw a "full causal graph" for a time series. This means that I have some graph with Units and Time indices repeating in the time direction. I want to draw the graph with…
LudvigH
  • 3,662
  • 5
  • 31
  • 49
1
vote
1 answer

Pydot parser : reading custom attributes in a node

I have dot graph string like I know I can use node.get_name() or node.get_label() to read name/label. what methods in the library can I use to read the custom properties like 'schema' or 'page' in the above case? Posted in pydot github page. No…
pratapan
  • 157
  • 7
1
vote
1 answer

GraphViz's executables not found - Why are there no executables installed after installation of graphViz via pip?

I installed pydotplus and graphviz in an virtual environment (Windows 8.1). Now I want to visualize a decision tree. However pydotplus is not able to find GraphViz's executables. from sklearn import tree from sklearn.datasets import…
zwithouta
  • 1,319
  • 1
  • 9
  • 22
1
vote
1 answer

How to visualize word patterns?

I have a data structure that looks like this: : { : [ {'start': , 'end': , 'group': } ] } The list of dictionaries within a is sorted by the 'start' date,…
nvergos
  • 432
  • 3
  • 15