Not displaying HTML labels in the image

52 views
Skip to first unread message

Paul Gerrard

unread,
Mar 24, 2012, 2:42:15 PM3/24/12
to pydot
Hi,

I have some dot that when I paste into the (Windows) gvedit program
shows a graph with all the html labels displayed correctly.

but when I use Pydot to generate the same image, I just get the node
names in the gif. Have I missed something?

Here's the code:

graph = pydot.graph_from_dot_data(gv)
gif=graph.write_gif(gfile)
gimage = open(gfile, 'r').read()



gv is a string containing:
"""
digraph ProcessMap {
node [shape=box]
rankdir=LR
label="x-label"
fontsize=12

p33 [label=<<table border="0"><tr><td>T-4 Scenario Coverage Achieved?</
td></tr></table>>]
p9 [label=<<table border="0"><tr><td>T-2 Story Coverage Achieved?</
td></tr></table>>]
p12 [label=<<table border="0"><tr><td>T-3 Enhance Process Path
((Variations)</td></tr></table>>]
p35 [label=<<table border="0"><tr><td>T-5 Clone Existing Test
Procedures</td></tr></table>>]
p6 [label=<<table border="0"><tr><td>T-7 Review Test Procedures</td></
tr></table>>]
p13 [label=<<table border="0"><tr><td>T-8 Approve Test Procedures</
td></tr></table>>]
p41 [label=<<table border="0"><tr><td>T-9 Choose Test Execution
Management Tool</td></tr></table>>]
p17 [label=<<table border="0"><tr><td>T-1 Generate First-Cut Test
Procedures</td></tr></table>>]
p7 [label=<<table border="0"><tr><td>T-6 Assign Scenarios to Test
Procedures</td></tr></table>>]

p33 -> p9
p9 -> p12
p12 -> p35
p35 -> p6
p6 -> p13
p13 -> p41
p41 -> p17
p17 -> p7
}
"""

Thanks a lot for any suggestions.
Reply all
Reply to author
Forward
0 new messages