~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to dotgraph.py

  • Committer: Aaron Bentley
  • Date: 2006-03-07 15:03:29 UTC
  • mfrom: (147.4.30 trunk)
  • mto: (147.4.31 trunk)
  • mto: This revision was merged to the branch mainline in revision 324.
  • Revision ID: abentley@panoramicfeedback.com-20060307150329-b2c79effccfdd961
MergeĀ fromĀ Robert

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
import time
26
26
 
27
27
RSVG_OUTPUT_TYPES = ('png', 'jpg')
28
 
DOT_OUTPUT_TYPES = ('svg', 'svgz', 'gif', 'jpg', 'ps', 'fig', 'mif', 'png',
 
28
DOT_OUTPUT_TYPES = ('svg', 'svgz', 'gif', 'jpg', 'ps', 'fig', 'mif', 'png', 
29
29
                    'cmapx')
30
30
 
31
31
class NoDot(Exception):
198
198
        shutil.rmtree(tempdir)
199
199
    return status
200
200
 
201
 
def invoke_dot(input, out_file=None, file_type='svg', antialias=None,
 
201
def invoke_dot(input, out_file=None, file_type='svg', antialias=None, 
202
202
               fontname="Helvetica", fontsize=11):
203
 
    cmdline = ['dot', '-T%s' % file_type, '-Nfontname=%s' % fontname,
 
203
    cmdline = ['dot', '-T%s' % file_type, '-Nfontname=%s' % fontname, 
204
204
               '-Efontname=%s' % fontname, '-Nfontsize=%d' % fontsize,
205
205
               '-Efontsize=%d' % fontsize]
206
206
    if out_file is not None: