def plot_sys_tree(system, outfile=None, fmt='pdf'):
    if outfile is None:
        outfile = 'system_tree.'+fmt

    dotfile = os.path.splitext(outfile)[0]+'.dot'

    _write_system_dot(system, dotfile)

    os.system("dot -T%s -o %s %s" % (fmt, outfile, dotfile))

    if sys.platform == 'darwin':
        os.system('open %s' % outfile)
    else:
        webbrowser.get().open(outfile)

    try:
        os.remove(dotfile)
    except:
        pass
Generate a plot of the system tree and bring it up in a browser.
dataset/ETHPy150Open OpenMDAO/OpenMDAO/openmdao/devtools/dotgraph.py/plot_sys_tree