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
0
votes
0 answers

how can visualize large graph using pydot

i have a large graph made by using pydot library,but unfortunatliy when i write_png photo of the graph, the photo is blured makes it hard to see the vertices so is there a way to show large graph using pydot ? G =…
mat
  • 1
  • 2
0
votes
0 answers

pydot graphiz, how to orient nodes

this is the result of my python script using pydot that tries to draw a logic gate graph, I am having trouble getting the edges to enter and exit in the correct position on the node. Due to this, the edges seem to enter and leave a node with no…
Killerbee
  • 1
  • 2
0
votes
2 answers

Can't generate graph using graphviz and dot layout

I am using pygraphviz 1.6 to generate the a plot using Python 3.6. Unfortunately, I can't update Python. While generating the graph, the command graph.layout("dot") generates the error: Traceback (most recent call last): File…
user1315621
  • 3,044
  • 9
  • 42
  • 86
0
votes
1 answer

I'm getting this issue when trying to run the code I found on GitHub. Pydot and graphivz are installed but still getting this error

2022-07-19 18:41:58.081967: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found 2022-07-19 18:41:58.082145: I…
0
votes
1 answer

Why do I keep receiving ModuleNotFound error with pydot, despite having installed it?

I've installed pydot and checked to make sure of this several times. However, when I attempt to import it in a Juptyer notebook file, I keep receiving a Module Not Found error: ModuleNotFoundError: No module named 'pydot' When I run pip3 show…
0
votes
1 answer

Pydot creates graph with empty node next to root node

I'm trying to create an image of a decision tree using the pydot function graph_from_dot_data. Everything works fine, but the resulting image has an empty node next to the root node. Reproducible example - from sklearn.datasets import load_iris from…
big parma
  • 337
  • 1
  • 13
0
votes
0 answers

Is it possible to create a Photoimage object from graph using pydot?

In my program I want to use pydot to be able to display image of a graph. I found a solution by using write_png and then creating Photoimage object using the created file. But I want to know whether it is possible to do this directly without…
0
votes
1 answer

Compact graph-vizualization using pydot

I would like to visualize a "linear" directed graph with the layout like that: All the in- and out-degrees are 1 (except the first and last, of course). The length of the labels are different, so I can't calculate easily, how many nodes will fit in…
0
votes
2 answers

Error in Displaying Decision Tree in Jupyter Notebook

My Code : from IPython.display import Image from sklearn.externals.six import StringIO import pydotplus dot_data = StringIO() tree.export_graphviz(clf, out_file=dot_data, feature_names=list(features.columns.values)) …
0
votes
1 answer

I am getting error "" when trying to generate an ERD image for my database models in django

I have already set-up my database models and for the sake of visualizing my data's, I would like to generate a structure for it. I have installed the required packages which were successful. List of installed packages for generating the graph using…
coderboy
  • 741
  • 2
  • 17
0
votes
1 answer

Can I horizontally align a pydot graph by distance from head?

I've created a graph as shown below. However, I'd like to arrange the graph hierarchically by shortest distance from the head (A). In other words: C, B, D, E should all be in the same level and horizontally aligned, since they're each all 1 edge…
0
votes
2 answers

graph.write_png doesn't work on linux( dot not found in path )- graphviz and pydot package

I am using python through a secure shell. When I use pydot and graphviz package, it shows error [Errno 2] dot not found in path. I searched so many solutions. People suggest 'sudo apt install graphviz' or 'sudo apt-get install graphviz'. But when I…
Gina
  • 1
  • 2
0
votes
2 answers

How to increase the size of the image and save the picture

I am trying to visualize a set of RDF turtles and I am using the following the code: !pip install pydotplus !pip install graphviz import io import pydotplus from IPython.display import display, Image from rdflib.tools.rdf2dot import rdf2dot def…
K C
  • 413
  • 4
  • 15
0
votes
2 answers

How to choose root node in "dot" graph layout for plotting with networkx and pydot/pygraphviz

I'm trying to create a visualization for a tree graph using networkx. How can I choose the root node? i.e. the first one from the top. Running this code: import networkx as nx import pydot import matplotlib.pyplot as plt from…
motrix
  • 348
  • 1
  • 9
0
votes
2 answers

Assertion error while drawing graph with pydot

I just started using pydot to create a graph. I just created a single node, but while tring to display the graph using jupyter notebook I'm having an issue. This is my code: import pydot import os from IPython.display import Image, display G=…