xentaur

changeset 46:85794a582ef5

naming pics as configs
author igor
date Wed Oct 24 15:30:43 2007 +0300 (2007-10-24)
parents 9c7a4cfa9738
children b67ffcdd0043
files xentaur.py
line diff
     1.1 --- a/xentaur.py	Wed Oct 24 15:17:30 2007 +0300
     1.2 +++ b/xentaur.py	Wed Oct 24 15:30:43 2007 +0300
     1.3 @@ -155,7 +155,7 @@
     1.4              'networklist'   : networklist,
     1.5            }
     1.6  
     1.7 -    f = open("xenomips.dot", "w");
     1.8 +    f = open(network+".dot", "w");
     1.9      f.write ("""
    1.10  graph G {
    1.11      edge [len=1.25];
    1.12 @@ -185,8 +185,9 @@
    1.13  };
    1.14  """ % graph_dot)
    1.15      f.close()
    1.16 -    run_command("neato -Tpng -o xenomips.png xenomips.dot ")
    1.17 -    run_command("neato -Tsvg -o xenomips.svg xenomips.dot ")
    1.18 +    run_command("neato -Tpng -o %s.png %s.dot "%(network,network))
    1.19 +    run_command("neato -Tjpg -o %s.jpg %s.dot "%(network,network))
    1.20 +    run_command("neato -Tsvg -o %s.svg %s.dot "%(network,network))
    1.21  
    1.22  def autoredraw():
    1.23      graph()