Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I invoke the Graphviz GUI from the command line? [closed]

Tags:

macos

graphviz

I am looking for a way to open a DOT file (.gz or .dot) in the GUI Graphviz viewer from the command line. So, if I run something like:

$ graphviz my_dot_file.gz 

It should open the Graphviz program with the selected file. Somehow, for this simple task, my googling has failed me...

I am on Mac OSX Mountain Lion

like image 794
scottmrogowski Avatar asked May 24 '13 04:05

scottmrogowski


People also ask

How do I open a graphviz dot graph?

For windows: dl the msi and install; Find gvedit.exe in your programs list; Open . dot file in question; Click running person on toolbar; Go to graph -> settings ; change Output file type to file type of your liking and press ok..

How do you show a graph on graphviz?

Graph and Digraph produce different DOT syntax and have different values for directed . Create a graph by instantiating a new Graph or Digraph object: >>> import graphviz >>> dot = graphviz. Digraph('round-table', comment='The Round Table') >>> dot <graphviz.

How do I open graphviz in Ubuntu?

Graphviz is a standard package on many linux distributions. You can check if it is installed with a command like dpkg -s graphivz . If it is not installed, you should be able to install it with your system's package manager. i.e. sudo apt-get install graphviz or search 'graphivz' in the Software Center on Ubuntu.


1 Answers

Did you try dot?

dot -Tx11 my_dot_file.dot
like image 68
rici Avatar answered Sep 23 '22 12:09

rici