Number: 2036
Title: Images do not properly rotate with rotate attribute
Submitter: Justin Dobbs
Date: Wed Sep 15 14:39:50 2010
Subsys: Dot
Version: 2.27
System: x86-Windows-XP
Severity: minor
Problem:
I have a digraph that renders fine. The nodes are rectangles with HTML tables, so that each node has an image on the first table row and a caption on the second table row.

I want to make it landscape, so I specify rotate=90. The graph and HTML tables rotate, but the images in the tables are pasted off to the right of the drawing without rotation.

I suppose there's a chance that this is a bug in Mozilla, but I can't tell from the outside. I ended up pasting the drawing into Visio and rotating it there.
Input:

// You have to supply the images, but it doesn't seem to matter what
// images you use.  This works fine if rotate is not specified.
digraph G
{
  rotate = 90;
  n0 [shape=box, label =<<table border="0"><tr><td><img src="00.png" scale="both"></img></td></tr>
                                          <tr><td>Caption 0</td></tr></table>>];
  n1 [shape=box, label =<<table border="0"><tr><td><img src="9A.png" scale="both"></img></td></tr>
                                          <tr><td>Caption 1</td></tr></table>>];
  n0 -> n1;
}
Output file: b2036.svg
Comments:
[arif] This should be svg and/or browser related. Graphic outputs are generated with images rotated as well.(I tested jpg and png)

[erg] This is a bug in our core SVG renderer. Fortunately, we have lots of redundancy. If you use the cairo renderer:


    dot -Tsvg:cairo
you should find the output is rotated correctly.
Owner: *
Status: *