orientation
type: double | string, default: 0.0
, ""
, minimum: 360.0
When used on nodes: Angle, in degrees, to rotate polygon node shapes. For any number of polygon sides, 0 degrees rotation results in a flat base.
When used on graphs: If "[lL]*"
, sets graph orientation to landscape.
Used only if rotate
is not defined.
Node Orientations
digraph {
layout=neato # Render in a circular layout
node [shape=house] # Make all nodes have 'house' shape
0 [orientation=0]
45 [orientation=45]
90 [orientation=90]
135 [orientation=135]
180 [orientation=180]
225 [orientation=225]
270 [orientation=270]
315 [orientation=315]
0 -> 45 -> 90 -> 135 -> 180 -> 225 -> 270 -> 315 -> 0
}
Landscape Graph Orientation
digraph {
orientation=L
a -> b
}
See also:
Valid on:- Graphs
- Nodes
Last modified
July 2, 2021
: Add examples for orientation attribute (afad103)