An interactive viewer for Graphviz dot files. #Graphviz viewer #Image viewer #Graphviz xdot #Graphviz #Graphics #Image
XDot is an interactive viewer for Graphviz dot files.
It uses internally the graphviz's xdot output format as an intermediate format, and PyGTK and Cairo for rendering.
XDot can be used either as a standalone application from command line, or as a library embedded in your python application.
Usage:
Command Line
xdot.py [file]
options: --version show program's version number and exit -h, --help show this help message and exit If no input file is given then it will read the dot graph from the standard input.
Embedding
Sample code
#!/usr/bin/env python
import gtk import gtk.gdk
import xdot
class MyDotWindow(xdot.DotWindow):
def __init__(self): xdot.DotWindow.__init__(self) self.widget.connect('clicked', self.on_url_clicked)
def on_url_clicked(self, widget, url, event): dialog = gtk.MessageDialog( parent = self, buttons = gtk.BUTTONS_OK, message_format="%s clicked" % url) dialog.connect('response', lambda dialog, response: dialog.destroy()) dialog.run() return True
dotcode = """ digraph G { Hello [URL="http://en.wikipedia.org/wiki/Hello"] World [URL="http://en.wikipedia.org/wiki/World"] Hello -> World } """
def main(): window = MyDotWindow() window.set_dotcode(dotcode) window.connect('destroy', gtk.main_quit) gtk.main()
if __name__ == '__main__': main()
System requirements
- Perl
- pydot
XDot 0.4
add to watchlist add to download basket send us an update REPORT- runs on:
- Linux
- filename:
- xdot-0.4.tar.gz
- main category:
- Multimedia
- developer:
- visit homepage
Microsoft Teams 24060.3102.2733.5911 Home / 1.7.00.7956 Work
Bitdefender Antivirus Free 27.0.35.146
Zoom Client 6.0.3.37634
7-Zip 23.01 / 24.04 Beta
Windows Sandbox Launcher 1.0.0
Context Menu Manager 3.3.3.1
IrfanView 4.67
4k Video Downloader 1.5.3.0080 Plus / 4.30.0.5655
ShareX 16.0.1
calibre 7.9.0
- 4k Video Downloader
- ShareX
- calibre
- Microsoft Teams
- Bitdefender Antivirus Free
- Zoom Client
- 7-Zip
- Windows Sandbox Launcher
- Context Menu Manager
- IrfanView